From 0135d2afeec2de0e76ac53b6bf4edba84570d73e Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Sun, 2 Jun 2024 14:56:29 +0100 Subject: [PATCH] No popups in score mdoe either. #5 --- web/src/ScoreMode.svelte | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/web/src/ScoreMode.svelte b/web/src/ScoreMode.svelte index 693575f..a56490c 100644 --- a/web/src/ScoreMode.svelte +++ b/web/src/ScoreMode.svelte @@ -3,11 +3,16 @@ import { Loading, NavBar, PickAmenityKinds } from "./common"; import type { Feature, FeatureCollection, Point } from "geojson"; import { colorScale } from "./colors"; - import { GeoJSON, CircleLayer, LineLayer } from "svelte-maplibre"; + import { + GeoJSON, + CircleLayer, + LineLayer, + hoverStateFilter, + } from "svelte-maplibre"; import { SplitComponent } from "svelte-utils/top_bar_layout"; import { backend, type ScoreProps } from "./stores"; import { SequentialLegend } from "svelte-utils"; - import { Popup, makeColorRamp } from "svelte-utils/map"; + import { makeColorRamp } from "svelte-utils/map"; let loading: string[] = []; let poiKinds: string[] = []; @@ -71,7 +76,15 @@ {/if} -
+
+ + {#if hoveredAmenity} + From {hoveredAmenity.properties.poi}, it's {hoveredAmenity.properties + .cost} seconds to the nearest parking + {/if} +

Score mode

@@ -91,20 +104,18 @@
{#if gj} - + - - From {props.poi}, it's {props.cost} seconds to the nearest parking - - + /> {/if}