title: Google Maps API - how to set center and zoom for current marker?
body: <p>When I initialize google maps in my app, I do something like this:</p>
  
  <pre><code>var myOptions = {
    center: new google.maps.LatLng(39.729001, -94.902342),
    zoom: 3,
      mapTypeId: google.maps.MapTypeId.ROADMAP
  };
  var map = new google.maps.Map(document.getElementById("map"), myOptions);
  setUpMarker(map);
  </code></pre>
  
  <p>Which works, however, I would need to set up the center of the map and zoom for the specific marker that is created by the function <code>setUpMarker</code>.</p>
  
  <p>I've tried inside the <code>setUpMarker</code> function to do this:</p>
  
  <pre><code>fromMarker = new google.maps.Marker({
    center: fromLatlng,
    zoom: 5,
    map: map,
    title: "Here"
  });
  </code></pre>
  
  <p>But it didn't help. Thus, how do achieve of this effect?</p>
  
  <p>Thank you guys for help.</p>