Merge pull request #5522 from SamuelBerger/master
Add 'condition' option to ol.interaction.DragPanOptions in olx.js
This commit is contained in:
@@ -2432,11 +2432,22 @@ olx.interaction.DragBoxOptions.prototype.boxEndCondition;
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{kinetic: (ol.Kinetic|undefined)}}
|
||||
* @typedef {{condition: (ol.EventsConditionType|undefined),
|
||||
* kinetic: (ol.Kinetic|undefined)}}
|
||||
*/
|
||||
olx.interaction.DragPanOptions;
|
||||
|
||||
|
||||
/**
|
||||
* A function that takes an {@link ol.MapBrowserEvent} and returns a boolean
|
||||
* to indicate whether that event should be handled.
|
||||
* Default is {@link ol.events.condition.noModifierKeys}.
|
||||
* @type {ol.EventsConditionType|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.interaction.DragPanOptions.prototype.condition;
|
||||
|
||||
|
||||
/**
|
||||
* Kinetic inertia to apply to the pan.
|
||||
* @type {ol.Kinetic|undefined}
|
||||
|
||||
Reference in New Issue
Block a user