title: Google map zoom level
body: <p>I'm using a google map api from this <a href="http://tips4php.net/2010/10/use-php-mysql-and-google-map-api-v3-for-displaying-data-on-map/" rel="nofollow">website</a> , thanks to the author.</p>
  
  <p>Here is part of the code: </p>
  
  <pre><code> function initMap() {
   map = new google.maps.Map(document.getElementById("map"), {
   center: new google.maps.LatLng(0, 0),
   zoom: 14,
   mapTypeId: google.maps.MapTypeId.ROADMAP,
   mapTypeControl: false,
   mapTypeControlOptions: {
   style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR
   },
   navigationControl: true,
   navigationControlOptions: {
   style: google.maps.NavigationControlStyle.SMALL
   }
   });
    &lt;?
   $query = mysql_query("SELECT * FROM markers WHERE ID='1'");
   while ($row = mysql_fetch_array($query)){
   $name=$row['name'];
   $lat=$row['lat'];
   $lon=$row['lng'];
   $desc=$row['address'];
    echo ("addMarker($lat, $lon,'&lt;b&gt;$name&lt;/b&gt;&lt;br/&gt;$desc');\n");
   }
   ?&gt;
   center = bounds.getCenter();
   map.fitBounds(bounds);
  </code></pre>
  
  <p>However I'm facing a problem to adjust the zoom level , it set as 14, but no matter what value I changed , it remains the same.</p>
  
  <p>I read from the comments below , someone suggest to remove this line : 
           map.fitBounds(bounds);</p>
  
  <p>I removed it , but the center of map is move to other location , which I think is (0,0).</p>
  
  <p>Is there any way to fix the zoom problem of this code? I tried to edit all the size though..but I'm not familiar with google map coding.</p>
  
  <p>Thank you.</p>