{Array(String)} Supported application event types. Register a listener for a particular event with the following syntax:
layer.events.register(type, obj, listener);
Listeners will be called with a reference to an event object. The properties of this event depends on exactly what happened.
All event objects have at least the following properties
- object {Object} A reference to layer.events.object.
- element {DOMElement} A reference to layer.events.element.
Supported map event types (in addition to those from OpenLayers.Layer)
- beforefeatureadded Triggered before a feature is added. Listeners will receive an object with a feature property referencing the feature to be added. To stop the feature from being added, a listener should return false.
- beforefeaturesadded Triggered before an array of features is added. Listeners will receive an object with a features property referencing the feature to be added. To stop the features from being added, a listener should return false.
- featureadded Triggered after a feature is added. The event object passed to listeners will have a feature property with a reference to the added feature.
- featuresadded Triggered after features are added. The event object passed to listeners will have a features property with a reference to an array of added features.
- beforefeatureremoved Triggered before a feature is removed. Listeners will receive an object with a feature property referencing the feature to be removed.
- featureremoved Triggerd after a feature is removed. The event object passed to listeners will have a feature property with a reference to the removed feature.
- featuresremoved Triggered after features are removed. The event object passed to listeners will have a features property with a reference to an array of removed features.
- featureselected Triggered after a feature is selected. Listeners will receive an object with a feature property referencing the selected feature.
- featureunselected Triggered after a feature is unselected. Listeners will receive an object with a feature property referencing the unselected feature.
- beforefeaturemodified Triggered when a feature is selected to be modified. Listeners will receive an object with a feature property referencing the selected feature.
- featuremodified Triggered when a feature has been modified. Listeners will receive an object with a feature property referencing the modified feature.
- afterfeaturemodified Triggered when a feature is finished being modified. Listeners will receive an object with a feature property referencing the modified feature.
- refresh Triggered when something wants a strategy to ask the protocol for a new set of features.