Or - on the keyboard, or using the zoom controls. Means the zoom level will not be snapped after fitBounds or a pinch-zoom.Ĭontrols how much the map's zoom level will change after a 0.5 or 0.1) allow for greater granularity. Right after a fitBounds() or a pinch-zoom.īy default, the zoom level snaps to the nearest integer lower values Set it to false if you don't want popups to close when user clicks the map.įorces the map's zoom level to always be a multiple of this, particularly Whether a zoom control is added to the map by default. Whether a attribution control is added to the map by default. Whether Paths should be rendered on a Canvas renderer.īy default, all Paths are rendered in a SVG renderer. Instantiates a map object given an instance of a HTML element Instantiates a map object given the DOM ID of a elementĪnd optionally an object literal with Map options. Usage example // initialize the map on the "map" div with a given center and zoom The central class of the API - it is used to create a map on a page and manipulate it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |