diff options
author | Abyss777 <abyss@fox5.ru> | 2016-07-04 16:11:31 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-07-04 16:11:31 +0500 |
commit | 6e36522ed8aa7b4d1f6b4a7ac3fabb08de2d0387 (patch) | |
tree | 16159d528445f35e19be875e6627b0c139e45070 /web/app/view/GeofenceMap.js | |
parent | 23796ee74a04f87d5dd028dffffa8a992c5c662d (diff) | |
download | traccar-server-6e36522ed8aa7b4d1f6b4a7ac3fabb08de2d0387.tar.gz traccar-server-6e36522ed8aa7b4d1f6b4a7ac3fabb08de2d0387.tar.bz2 traccar-server-6e36522ed8aa7b4d1f6b4a7ac3fabb08de2d0387.zip |
Load area for editing geofence.
Diffstat (limited to 'web/app/view/GeofenceMap.js')
-rw-r--r-- | web/app/view/GeofenceMap.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/web/app/view/GeofenceMap.js b/web/app/view/GeofenceMap.js index e8a4dc5de..70584f41d 100644 --- a/web/app/view/GeofenceMap.js +++ b/web/app/view/GeofenceMap.js @@ -19,7 +19,8 @@ Ext.define('Traccar.view.GeofenceMap', { xtype: 'geofenceMapView', requires: [ - 'Traccar.view.GeofenceMapController' + 'Traccar.view.GeofenceMapController', + 'Traccar.GeofenceConverter' ], controller: 'geofenceMap', @@ -56,6 +57,9 @@ Ext.define('Traccar.view.GeofenceMap', { map = this.map; this.features = new ol.Collection(); + if (this.area !== "") { + this.features.push(new ol.Feature(Traccar.GeofenceConverter.wktToGeometry(this.mapView, this.area))); + } featureOverlay = new ol.layer.Vector({ source: new ol.source.Vector({ features: this.features |