Type.
Listener.
Add a feature to the collection of features that we may snap to.
Feature.
Whether to listen to the feature change or not
Defaults to true
.
Increases the revision counter and dispatches a 'change' event.
Dispatches an event and calls all listeners listening for events
of this type. The event parameter can either be a string or an
Object with a type
property.
Event object.
false
if anyone called preventDefault on the
event object or if any of the listeners returned false.
Clean up.
Gets a value.
Key name.
Value.
Return whether the interaction is currently active.
true
if the interaction is active, false
otherwise.
Get a list of object property names.
List of property names.
Get the listeners for a specified event type. Listeners are returned in the order that they will be called in.
Type.
Listeners.
Get the map associated with this interaction.
Map.
Returns the current number of pointers involved in the interaction,
e.g. 2
when two fingers are used.
The number of pointers.
Get an object of all property names and values.
Object.
Get the version number for this object. Each time the object is modified, its version number will be incremented.
Revision.
Handles the {@link module:ol/MapBrowserEvent map browser event}.
Map browser event.
false
to stop event propagation.
Type. If not provided,
true
will be returned if this event target has any listeners.
Has listeners.
The object has properties.
Key name.
Old value.
Listen for a certain type of event.
The event type or array of event types.
The listener function.
Unique key for the listener. If called with an array of event types as the first argument, the return will be an array of keys.
Listen once for a certain type of event.
The event type or array of event types.
The listener function.
Unique key for the listener. If called with an array of event types as the first argument, the return will be an array of keys.
Type.
Listener.
Remove a feature from the collection of features that we may snap to.
Feature
Whether to unlisten to the feature change
or not. Defaults to true
.
Sets a value.
Key name.
Value.
Update without triggering an event.
Activate or deactivate the interaction.
Active.
Remove the interaction from its current map and attach it to the new map. Subclasses may set up event handlers to get notified about changes to the map here.
Map.
Sets a collection of key-value pairs. Note that this changes any existing properties and adds new ones (it does not remove any existing properties).
Values.
Update without triggering an event.
Pixel
Coordinate
Map.
Snap result
This function is used to determine if "down" events should be propagated to other interactions or should be stopped.
Was the event handled by the interaction?
Should the down
event be stopped?
Unlisten for a certain type of event.
The event type or array of event types.
The listener function.
Unsets a property.
Key name.
Unset without triggering an event.
Generated using TypeDoc