behavior.storage
Static object.
Instance of util.Storage
Storage for map behavior classes. A new behavior is added to the map via this storage.
By default, the following behaviors are added to the storage:
- "drag" - Dragging the map when the left mouse button is held down, or by a single touch behavior.Drag.
- "scrollZoom" - Changing the zoom with the mouse wheel behavior.ScrollZoom (only for desktop browsers).
- "dblClickZoom" - Zooming the map on a double click behavior.DblClickZoom.
- "multiTouch" - Zooming the map with a multi touch (i.e. on a touch screen) behavior.MultiTouch (only for mobile browsers).
- "rightMouseButtonMagnifier" - Magnifying the area that is selected using the right mouse button (for desktop browsers only), behavior.RightMouseButtonMagnifier (for desktop browsers only).
- "leftMouseButtonMagnifier" - Magnifying the area selected by the left mouse button or a single touch, behavior.LeftMouseButtonMagnifier.
- "ruler" - Measuring distance behavior.Ruler.
- "routeEditor" - Route editor behavior.RouteEditor.
Methods
Name |
Returns |
Description |
Adds an object to storage. |
||
Object |
Returns object stored for the specified key, or the primary key, if this is not a string. |
|
Deletes the "key: value" pair from storage. |