diff --git a/src/station.rs b/src/station.rs index 4e002ca..28e09e8 100644 --- a/src/station.rs +++ b/src/station.rs @@ -82,7 +82,7 @@ async fn view( iconAnchor: [12, 41] }}); currentMarker = L.marker([{lat}, {lng}], {{icon: myIcon}}).addTo(map); - map.setView([lat, lng], 14); + map.setView([{lat}, {lng}], 14); ")) } div {