From 9bed98677f78feabb89b58f72584bf1a7db87e60 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Wed, 29 Mar 2017 12:06:49 +0500 Subject: Fix check --- web/app/view/map/GeofenceMap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/app/view/map') 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); -- cgit v1.2.3