Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaeloxMC committed Aug 2, 2024
1 parent 1b0eb6e commit b9e5b1f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/app/components/map/map.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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])),
Expand Down Expand Up @@ -112,7 +111,6 @@ export class MapComponent implements OnInit {
const activity = (feature as Feature<Geometry>).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';
Expand All @@ -133,7 +131,6 @@ export class MapComponent implements OnInit {
this.tooltip.nativeElement.style.display = 'none';
this.vectorSource.getFeatures().forEach((feature: Feature<Geometry>) => {
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,
Expand Down

0 comments on commit b9e5b1f

Please sign in to comment.