Methods
(inner) addViewSyncMapTrigger(viewport, map)
Adds a view sync trigger to the map.
Parameters:
Name | Type | Description |
---|---|---|
viewport |
* | The viewport. |
map |
ol.Map | The Openlayers map. |
- Source:
(inner) getViewSyncMapListener(viewport, The, always_sync) → {function}
Gets a function for updating the map to be synchronized with other viewports.
Parameters:
Name | Type | Description |
---|---|---|
viewport |
* | The viewport. |
The |
ol.Map | Openlayers map. |
always_sync |
* | Whether or not the viewport should always synchronize. Set to true when the map does not have a SyncMapTrigger. |
- Source:
Returns:
The view sync update function.
- Type
- function
(inner) getViewSyncViewportListener(viewport, always_sync) → {function}
Gets a function for updating the viewport to be synchronized with other viewports.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
viewport |
* | The viewport. | |
always_sync |
* | true | Whether or not the viewport should always synchronize. Set to true when the viewport does not have a SyncMapTrigger. |
- Source:
Returns:
The view sync update function.
- Type
- function