From 73f2f91c42ce77469f1118b17c500237a280a8b3 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Tue, 6 Nov 2018 16:48:27 +0000 Subject: [PATCH] chore(package): update ol to version 5.3.0 --- package.json | 2 +- src/interaction/DrawAzimut.js | 4 ++-- src/interaction/ModifyCircle.js | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 4c8592e7756b..dc46b9414992 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "moment": "2.22.2", "node-sass": "4.10.0", "node-sass-importer": "1.0.0", - "ol": "5.2.0", + "ol": "5.3.0", "ol-cesium": "2.4.0", "phantomjs-polyfill-string-includes": "1.0.0", "phantomjs-prebuilt": "2.1.16", diff --git a/src/interaction/DrawAzimut.js b/src/interaction/DrawAzimut.js index 2479e85e2add..9ee53697188a 100644 --- a/src/interaction/DrawAzimut.js +++ b/src/interaction/DrawAzimut.js @@ -12,7 +12,7 @@ import olGeomCircle from 'ol/geom/Circle.js'; import olGeomGeometryCollection from 'ol/geom/GeometryCollection.js'; import olGeomLineString from 'ol/geom/LineString.js'; import olGeomPoint from 'ol/geom/Point.js'; -import olInteractionPointer, {handleEvent as pointerHandleEvent} from 'ol/interaction/Pointer.js'; +import olInteractionPointer from 'ol/interaction/Pointer.js'; import olLayerVector from 'ol/layer/Vector.js'; import olSourceVector from 'ol/source/Vector.js'; @@ -148,7 +148,7 @@ exports.handleEvent_ = function(mapBrowserEvent) { } else if (mapBrowserEvent.type === 'dblclick') { pass = false; } - return pointerHandleEvent.call(this, mapBrowserEvent) && pass; + return olInteractionPointer.prototype.handleEvent.call(this, mapBrowserEvent) && pass; }; diff --git a/src/interaction/ModifyCircle.js b/src/interaction/ModifyCircle.js index ef30eb8844d6..0aca91645e56 100644 --- a/src/interaction/ModifyCircle.js +++ b/src/interaction/ModifyCircle.js @@ -16,7 +16,7 @@ import olGeomCircle from 'ol/geom/Circle.js'; import olGeomLineString from 'ol/geom/LineString.js'; import olGeomPoint from 'ol/geom/Point.js'; import {fromCircle} from 'ol/geom/Polygon.js'; -import olInteractionPointer, {handleEvent as pointerHandleEvent} from 'ol/interaction/Pointer.js'; +import olInteractionPointer from 'ol/interaction/Pointer.js'; import olLayerVector from 'ol/layer/Vector.js'; import olSourceVector from 'ol/source/Vector.js'; import olStructsRBush from 'ol/structs/RBush.js'; @@ -394,8 +394,7 @@ exports.handleEvent = function(mapBrowserEvent) { this.handlePointerMove_(mapBrowserEvent); } - return pointerHandleEvent.call(this, mapBrowserEvent) && - !handled; + return olInteractionPointer.prototype.handleEvent.call(this, mapBrowserEvent) && !handled; };