Skip to content Skip to sidebar Skip to footer

Google Maps Api Zoom After Setcenter

I have attempted to use Google Maps to add locations to events that the user can create. As such there is an 'add location' checkbox that has onclick='initialize()', the map and a

Solution 1:

The geocoder returns a suggested viewport

results[0].geometry.viewport

It can be used to zoom to a level that makes sense for the result returned

Example

Post a Comment for "Google Maps Api Zoom After Setcenter"