Skip to content

Commit

Permalink
Change wording and remove crossings geojson
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter York committed Sep 18, 2023
1 parent f53af22 commit 52ac424
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion assets/crossings.geojson

This file was deleted.

4 changes: 2 additions & 2 deletions src/lib/browse/layers/CrossingsLayerControl.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
const name = "crossings";
function tooltip(feature: MapGeoJSONFeature): string {
const crossingTypeString: string = feature.properties["crossing"];
const crossingTypeString = feature.properties.crossing;
if (crossingTypeString === "no")
return "Location where crossing is impossible/illegal but where there is a clear desire line to cross.";
let result = "Crossing with the following features.";
const initialTooltipSentence =
initialTooltipSentences.get(crossingTypeString);
if (initialTooltipSentence) result = initialTooltipSentence;
return result + `. More information can be found by clicking.`;
return `<p>${result}. Click for details.</p>`;
}
const initialTooltipSentences: Map<string, string> = new Map<string, string>([
Expand Down

0 comments on commit 52ac424

Please sign in to comment.