Whether the map is draggable with mouse/touch or not.įorces the map's zoom level to always be a multiple of this, particularly 'center', double-click zoom will zoom to the center of the Zoomed out by double clicking while holding shift. Whether the map can be zoomed in by double clicking on it and Whether the map can be zoomed to a rectangular area specified byĭragging the mouse while pressing the shift key. Set it to false if you don't want popups to close when user clicks the map.
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.