interactivityModel.storage

Static object.

Instance of util.Storage

Storage for the interactivity model. Interactivity models allow objects to handle DOM events in different ways. Available interactivity model keys:

  • 'default#opaque' - The object generates all DOM events and does not throw them to the map. Map behaviors will not work when hovering over or clicking on objects with this interactivity model.
  • 'default#geoObject' - The object generates all DOM events. The events "wheel", "mousedown", "dblclick", "contextmenu", "multitouchstart", "multitouchmove" and "multitouchend" are thrown to the map. If the "scrollZoom", "dblClickZoom" or "magnifier" behaviors are enabled on the map, they will work via objects with this interactivity model, in contrast to the objects with the "default#opaque" model.
  • 'default#layer' - The object generates all DOM events. The events "wheel", "mousedown", "contextment", "multitouchstart", "multitouchmove", and "multitouchend" are thrown to the map. If the "scrollZoom", "drag", or "magnifier" behaviors are enabled on the map, they will work via objects with this interactivity model.
  • 'default#transparent' - The object generates all DOM events, then throws them to the map.
  • 'default#silent' - The object does not generate all DOM events but throws them to the map.

Methods

Methods

Name

Returns

Description

add(key, object)

util.Storage

Adds an object to storage.

get(key)

Object

Returns object stored for the specified key, or the primary key, if this is not a string.

remove(key)

util.Storage

Deletes the "key: value" pair from storage.