diff options
author | Abyss777 <abyss@fox5.ru> | 2016-12-29 14:36:00 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-12-29 14:36:00 +0500 |
commit | 9099fd92f984b26090072f6553dff55b713589d7 (patch) | |
tree | 3156cbf7fd36a77badcdd7cd9a6cebbdf22f366d /web | |
parent | 1b8b172eaaab2aa738f45e39e3ca86a42d494bdd (diff) | |
download | trackermap-web-9099fd92f984b26090072f6553dff55b713589d7.tar.gz trackermap-web-9099fd92f984b26090072f6553dff55b713589d7.tar.bz2 trackermap-web-9099fd92f984b26090072f6553dff55b713589d7.zip |
Do check in better way
Diffstat (limited to 'web')
-rw-r--r-- | web/app/view/MapController.js | 2 |
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); |