靜態handleHandles the map browser event and may change the selected state of features.
Map browser event.
false to stop event propagation.
靜態unReturns the associated vectorlayer of the (last) selected feature. Note that this will not work with any programmatic method like pushing features to collection.
Layer.
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.
Map.
Listen for a certain type of event.
The event type or array of event types.
The listener function.
可選opt_this: ObjectThe object to use as this in listener.
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.
可選opt_this: ObjectThe object to use as this in listener.
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.
函數Removes an event listener using the key returned by on() or once().
Note that using the ol.Observable.unByKey static function is to
be preferred.
可選opt_options: SelectOptionsOptions.
Interaction for selecting vector features. By default, selected features are
styled differently, so this interaction can be used for visual highlighting,
as well as selecting features for other actions, such as modification or
output. There are three ways of controlling which features are selected:
using the browser event as defined by the condition and optionally the
toggle, add/remove, and multi options; a layers filter; and a
further feature filter using the filter option.
Selected features are added to an internal unmanaged layer.
Classdesc
Interaction for selecting vector features. By default, selected features are styled differently, so this interaction can be used for visual highlighting, as well as selecting features for other actions, such as modification or output. There are three ways of controlling which features are selected: using the browser event as defined by the
conditionand optionally thetoggle,add/remove, andmultioptions; alayersfilter; and a further feature filter using thefilteroption.Selected features are added to an internal unmanaged layer.
參數: opt_options
Options.
Fires
ol.interaction.SelectEvent
Api
stable