diff options
Diffstat (limited to 'web/app/view/map')
-rw-r--r-- | web/app/view/map/GeofenceMap.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/view/map/GeofenceMap.js b/web/app/view/map/GeofenceMap.js index d16e6ca1..6b06ae98 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); |