aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/map/GeofenceMap.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-03-22 22:58:18 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-03-22 22:58:18 -0700
commitba9cc86f667486a09edb323402c2d63ada5ea639 (patch)
tree8df80eca54f9dd39664f63365ffcc2ec248fb3df /web/app/view/map/GeofenceMap.js
parent990d485a21c945e7d57b85378650a65f3e79eed3 (diff)
parentf5165c8e897e8d9cf4219d943e2d34b61adb48b5 (diff)
downloadtrackermap-web-ba9cc86f667486a09edb323402c2d63ada5ea639.tar.gz
trackermap-web-ba9cc86f667486a09edb323402c2d63ada5ea639.tar.bz2
trackermap-web-ba9cc86f667486a09edb323402c2d63ada5ea639.zip
Merge branch 'master' into modern
Diffstat (limited to 'web/app/view/map/GeofenceMap.js')
-rw-r--r--web/app/view/map/GeofenceMap.js5
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);
},