aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-12-29 14:36:00 +0500
committerAbyss777 <abyss@fox5.ru>2016-12-29 14:36:00 +0500
commit9099fd92f984b26090072f6553dff55b713589d7 (patch)
tree3156cbf7fd36a77badcdd7cd9a6cebbdf22f366d
parent1b8b172eaaab2aa738f45e39e3ca86a42d494bdd (diff)
downloadtrackermap-web-9099fd92f984b26090072f6553dff55b713589d7.tar.gz
trackermap-web-9099fd92f984b26090072f6553dff55b713589d7.tar.bz2
trackermap-web-9099fd92f984b26090072f6553dff55b713589d7.zip
Do check in better way
-rw-r--r--web/app/view/MapController.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/view/MapController.js b/web/app/view/MapController.js
index 99295246..66d6809a 100644
--- a/web/app/view/MapController.js
+++ b/web/app/view/MapController.js
@@ -124,7 +124,7 @@ Ext.define('Traccar.view.MapController', {
var feature = new ol.Feature(Traccar.GeofenceConverter
.wktToGeometry(this.getView().getMapView(), geofence.get('area')));
feature.setStyle(this.getGeofenceStyle(geofence.get('name'),
- geofence.get('attributes') !== undefined ? geofence.get('attributes').color : undefined));
+ geofence.get('attributes') ? geofence.get('attributes').color : null));
this.getView().getGeofencesSource().addFeature(feature);
return true;
}, this);