Class: Synchronize

ol.interaction. Synchronize


new Synchronize(options)

Interaction synchronize

Parameters:
Name Type Description
options olx.interaction.SynchronizeOptions

maps {Array<ol.Map>} 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


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