new ViewerLayerEvent(type, opt_layer, opt_features, opt_shiftPressed)
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
type |
Mapspace.ViewerLayerEventType | Event type. |
|
opt_layer |
Mapspace.layer.Vector |
<nullable> |
An optional layer that has changed or contains vector features that has changed. It can be undefined when vector features has changed but they are not inside any layer (for example, temporary vector features). |
opt_features |
Array.<ol.Feature> | undefined | An optional array (only for vector layers) with the list of features that have changed. If no array is provided and the layer is a vector layer that means all the features in the layer have changed. |
|
opt_shiftPressed |
boolean |
<nullable> |
Indicates if shift key is pressed. |
- Source:
- mapspace/events.js
Extends
Members
-
features :Array.<ol.Feature>|undefined
-
An optional array (only for vector layers) with the list of features that have changed. If no array is provided and the layer is a vector layer that means all the features in the layer have changed.
- Source:
- mapspace/events.js
-
<nullable> layer :Mapspace.layer.Vector
-
An optional layer that has changed or contains vector features that has changed. It can be undefined when vector features has changed but they are not inside any layer (for example, temporary vector features).
- Source:
- mapspace/events.js
-
<nullable> shiftPressed :boolean
-
Indicates if shift key is pressed when the event take place.
- Source:
- mapspace/events.js