From 2091cf76cfa67d37dc8f058cc62d0aa1050eef3c Mon Sep 17 00:00:00 2001 From: secondl1ght <85003930+secondl1ght@users.noreply.github.com> Date: Tue, 25 Oct 2022 18:38:02 -0600 Subject: format locations map popup --- src/components/LocationsMap.svelte | 67 +++++++++++++++++++------------------- 1 file changed, 33 insertions(+), 34 deletions(-) (limited to 'src') diff --git a/src/components/LocationsMap.svelte b/src/components/LocationsMap.svelte index 34821745..b3be164f 100644 --- a/src/components/LocationsMap.svelte +++ b/src/components/LocationsMap.svelte @@ -108,38 +108,38 @@ let marker = L.marker([location.lat, location.lon]); - marker.bindPopup(`${ - location.tags && location.tags.name - ? `${location.tags.name}` - : '' - } + marker.bindPopup( + `${ + location.tags && location.tags.name + ? `${location.tags.name}` + : '' + } + + ${location.tags && checkAddress(location.tags)} + + ${ + location.tags && location.tags.phone + ? `${location.tags.phone}` + : '' + } + + ${ + location.tags && location.tags.website + ? `${location.tags.website}` + : '' + } - ${location.tags && checkAddress(location.tags)} - - - ${ - location.tags && location.tags.phone - ? `${location.tags.phone}` - : '' - } - - ${ - location.tags && location.tags.website - ? `${location.tags.website}` - : '' - } - - ${ - location.tags && location.tags['contact:twitter'] - ? `TWT: ${ - location.tags['contact:twitter'] - }` - : '' - } + ${ + location.tags && location.tags['contact:twitter'] + ? `TWT: ${ + location.tags['contact:twitter'] + }` + : '' + } ${ location.tags && location.tags['contact:instagram'] @@ -175,9 +175,8 @@ location.tags['contact:linkedin'] }` : '' - } - -`); + }` + ); markers.addLayer(marker); }); -- cgit v1.2.3