靜態handleHandles the map browser event and may call into other functions, if event sequences like e.g. 'drag' or 'down-up' etc. are detected.
Map browser event.
false to stop event propagation.
靜態unListen 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: DragZoomOptionsOptions.
Allows the user to zoom the map by clicking and dragging on the map, normally combined with an ol.events.condition that limits it to when a key, shift by default, is held down.
To change the style of the box, use CSS and the .ol-dragzoom selector, or
your custom one configured with className.
Classdesc
Allows the user to zoom the map by clicking and dragging on the map, normally combined with an ol.events.condition that limits it to when a key, shift by default, is held down.
To change the style of the box, use CSS and the
.ol-dragzoomselector, or your custom one configured withclassName.參數: opt_options
Options.
Api
stable