Google Map Zoom Level Javascript
When a user scrolls a page that contains a map the scrolling action can unintentionally cause the map to zoom.
Google map zoom level javascript. Read the documentation. When you have eliminated the javascript whatever remains must be an empty page. Enable javascript to see google maps. For a complete list of events consult the maps javascript api reference events are listed in a separate section for each object which contains events.
It appears that the extra zoom level available for static maps is just an upsampled version of the max resolution image from the javascript api. This example creates a map of metropolitan tokyo. Function initmap map new google maps map document. Users can zoom the map by clicking the zoom controls.
As a result map images within google maps and the maps javascript api are broken up into map tiles and zoom levels at low zoom levels a small set of map tiles covers a wide area. Map getcameraposition zoom alvarosantisteban jul 30 14 at 14 42 add a comment 11. Some objects within the maps javascript api are designed to respond to user events such as mouse or keyboard events. Find local businesses view maps and get driving directions in google maps.
If you are using google maps api2 then you have to do it like this. Max zoom the google maps api provides map tiles at various zoom levels for map type imagery. Preventing map pan and zoom on page scroll. Most roadmap imagery is available from zoom levels 0 to 18.
Read the guide on using typescript and google maps. Map scale at various zoom levels google maps uses a mercator projection so the scale varies substantially with latitude.