aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/map/GeofenceMap.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-03-29 12:06:49 +0500
committerAbyss777 <abyss@fox5.ru>2017-03-29 12:06:49 +0500
commit9bed98677f78feabb89b58f72584bf1a7db87e60 (patch)
tree3cb9fdf55865f26c14f1cb0031b10fc33868e34e /web/app/view/map/GeofenceMap.js
parent8523cf92c8ef566ec28b9a759c81f4a86957c11e (diff)
downloadetbsa-traccar-web-9bed98677f78feabb89b58f72584bf1a7db87e60.tar.gz
etbsa-traccar-web-9bed98677f78feabb89b58f72584bf1a7db87e60.tar.bz2
etbsa-traccar-web-9bed98677f78feabb89b58f72584bf1a7db87e60.zip
Fix check
Diffstat (limited to 'web/app/view/map/GeofenceMap.js')
-rw-r--r--web/app/view/map/GeofenceMap.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/view/map/GeofenceMap.js b/web/app/view/map/GeofenceMap.js
index d16e6ca..6b06ae9 100644
--- a/web/app/view/map/GeofenceMap.js
+++ b/web/app/view/map/GeofenceMap.js
@@ -65,7 +65,7 @@ Ext.define('Traccar.view.map.GeofenceMap', {
map = this.map;
this.features = new ol.Collection();
- if (this.area !== '') {
+ if (this.area) {
geometry = Traccar.GeofenceConverter.wktToGeometry(this.mapView, this.area);
this.features.push(new ol.Feature(geometry));
this.mapView.fit(geometry);