diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-02 12:55:29 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-02 12:55:29 -0800 |
commit | fe47299d6cc02a4e43a1d2f3a788897be8a6f5ce (patch) | |
tree | 90cd987766fb51f104b2ad52e45acb67998a5c7a /web/app/view/map/GeofenceMap.js | |
parent | e029756644581346a42f162a6505dda717a8c572 (diff) | |
download | trackermap-web-fe47299d6cc02a4e43a1d2f3a788897be8a6f5ce.tar.gz trackermap-web-fe47299d6cc02a4e43a1d2f3a788897be8a6f5ce.tar.bz2 trackermap-web-fe47299d6cc02a4e43a1d2f3a788897be8a6f5ce.zip |
Fix openlayers upgrade issues (fix #724)
Diffstat (limited to 'web/app/view/map/GeofenceMap.js')
-rw-r--r-- | web/app/view/map/GeofenceMap.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/web/app/view/map/GeofenceMap.js b/web/app/view/map/GeofenceMap.js index 6b06ae98..8cef574b 100644 --- a/web/app/view/map/GeofenceMap.js +++ b/web/app/view/map/GeofenceMap.js @@ -105,13 +105,14 @@ Ext.define('Traccar.view.map.GeofenceMap', { }, addInteraction: function (type) { + var self = this; this.draw = new ol.interaction.Draw({ features: this.features, type: type }); this.draw.on('drawstart', function () { - this.features.clear(); - }, this); + self.features.clear(); + }); this.map.addInteraction(this.draw); }, |