Class: Synchronize

ol.interaction. Synchronize

Interaction synchronize


new Synchronize(options, options)

Parameters:
Name Type Description
options *
options Array.<ol.Map>

maps An array of maps to synchronize with the map of the interaction

Extends

  • ol.interaction.Interaction

Methods


handleMouseOut_(e)

Cursor out of map > tells other maps to hide the cursor

Parameters:
Name Type Description
e event

"mouseOut" event


handleMove_(e)

Cursor move > tells other maps to show the cursor

Parameters:
Name Type Description
e ol.event

"move" event


setActive(b)

Auto activate/deactivate controls in the bar

Parameters:
Name Type Description
b boolean

activate/deactivate


setMap(map)

Remove the interaction from its current map, if any, and attach it to a new map, if any. Pass null to just remove the interaction from the current map.

Parameters:
Name Type Description
map ol.Map

Map.


syncMaps()

Synchronize the maps