How to show only geofence name / hide or remove geofence area

su5 years ago

Hi,

anyone knows how to show only geofence name from this code copied from the show geofence code..

updateGeofencesLabels: function () {
    this.getView().getGeofencesLabelsSource().clear();
    if (this.lookupReference('showGeofencesLabelsButton').pressed) {Ext.getStore('Geofences').each(function (geofence) {var feature = new ol.Feature(Traccar.GeofenceConverter.wktToGeometry(this.getView().getMapView(), geofence.get('area')));
            feature.setStyle(this.getAreaStyle(Ext.String.htmlDecode(geofence.get('name')),geofence.get('attributes') ? geofence.get('attributes').color : null));
            this.getView().getGeofencesLabelsSource().addFeature(feature);
            return true;
        }, this);
    }
},