diff options
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 9929524..66d6809 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); |