From b9e5b1f35ed7da1d441ac57bb87ae6aa425a19a0 Mon Sep 17 00:00:00 2001 From: RafaeloxMC <53903394+RafaeloxMC@users.noreply.github.com> Date: Fri, 2 Aug 2024 09:48:59 +0200 Subject: [PATCH] fix eslint --- src/app/components/map/map.component.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/app/components/map/map.component.ts b/src/app/components/map/map.component.ts index 9320021..62012e7 100644 --- a/src/app/components/map/map.component.ts +++ b/src/app/components/map/map.component.ts @@ -70,7 +70,6 @@ export class MapComponent implements OnInit { activities.forEach(activity => { const local = this.getBookmarked(activity.osm_id); console.log(`Activity: ${activity.name}, Bookmarked: ${local}, Color: ${activity.type.color}`); - const color = local ? "gold" : activity.type.color; const feature = new Feature({ geometry: new Point(fromLonLat([activity.longitude, activity.latitude])), @@ -112,7 +111,6 @@ export class MapComponent implements OnInit { const activity = (feature as Feature).get('activity'); if (activity) { const tooltipElement = this.tooltip.nativeElement; - const color = this.getBookmarked(activity.osm_id) ? "gold" : activity.type.color; tooltipElement.innerHTML = activity.name + ' (' + activity.type.name + (this.getBookmarked(activity.osm_id) ? " / favorisiert" : "") + ')'; tooltipElement.style.display = 'block'; tooltipElement.style.left = event.originalEvent.pageX + 'px'; @@ -133,7 +131,6 @@ export class MapComponent implements OnInit { this.tooltip.nativeElement.style.display = 'none'; this.vectorSource.getFeatures().forEach((feature: Feature) => { const activity = feature.get('activity'); - const color = this.getBookmarked(activity.osm_id) ? "gold" : activity.type.color; feature.setStyle(new Style({ image: new Icon({ src: 'data:image/svg+xml;utf8,' + activity.type.svg,