needsite.blogg.se

State click map
State click map







state click map

Slow down map dragging outside bounds, and 1.0 makes the bounds fully User to drag outside the bounds at normal speed, higher values will If maxBounds is set, this option will control how solid the boundsĪre when dragging the map around.

state click map

Like markers and vector layers are still visible. Of the world and seamlessly jumps to the original one so that all overlays With this option enabled, the map tracks when you pan to another "copy" Max speed of the inertial movement, in pixels/second. The rate with which the inertial movement slows down, in pixels/second². The map builds momentum while dragging and continues moving in If enabled, panning of the map will have an inertia effect where

#State click map update

Whether the map automatically handles browser window resize to update itself. 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 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.

state click 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.









State click map