Add moveTolerance option for ol.Map

This commit is contained in:
itjope
2017-05-18 13:22:31 +02:00
parent 4664a19718
commit 56b3203fa9
3 changed files with 17 additions and 3 deletions
+1 -1
View File
@@ -278,7 +278,7 @@ ol.Map = function(options) {
* @private
* @type {ol.MapBrowserEventHandler}
*/
this.mapBrowserEventHandler_ = new ol.MapBrowserEventHandler(this);
this.mapBrowserEventHandler_ = new ol.MapBrowserEventHandler(this, options.moveTolerance);
for (var key in ol.MapBrowserEventType) {
ol.events.listen(this.mapBrowserEventHandler_, ol.MapBrowserEventType[key],
this.handleMapBrowserEvent, this);