Better docs for handleMapBrowserEvent
This commit is contained in:
+1
-1
@@ -138,7 +138,7 @@ oli.interaction.Interaction = function() {};
|
|||||||
/**
|
/**
|
||||||
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
||||||
* @return {boolean} Whether the map browser event should continue
|
* @return {boolean} Whether the map browser event should continue
|
||||||
* through the chain of interactions. false means stop, true
|
* through the chain of interactions. `false` means stop, `true`
|
||||||
* means continue.
|
* means continue.
|
||||||
*/
|
*/
|
||||||
oli.interaction.Interaction.prototype.handleMapBrowserEvent = function(e) {};
|
oli.interaction.Interaction.prototype.handleMapBrowserEvent = function(e) {};
|
||||||
|
|||||||
@@ -77,10 +77,15 @@ ol.interaction.Interaction.prototype.getMap = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Method called by the map to notify the interaction that a browser
|
||||||
|
* event was dispatched on the map. If the interaction wants to handle
|
||||||
|
* that event it can return `false` to prevent the propagation of the
|
||||||
|
* event to other interactions in the map's interactions chain.
|
||||||
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
||||||
* @return {boolean} Whether the map browser event should continue
|
* @return {boolean} Whether the map browser event should continue
|
||||||
* through the chain of interactions. false means stop, true
|
* through the chain of interactions. `false` means stop, `true`
|
||||||
* means continue.
|
* means continue.
|
||||||
|
* @function
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
ol.interaction.Interaction.prototype.handleMapBrowserEvent =
|
ol.interaction.Interaction.prototype.handleMapBrowserEvent =
|
||||||
|
|||||||
Reference in New Issue
Block a user