diff --git a/templates/components/map.html b/templates/components/map.html index a969cf49..75e8a175 100644 --- a/templates/components/map.html +++ b/templates/components/map.html @@ -13,8 +13,8 @@ function mapMarkers() { const markers = [ {{ range .Markers }} new mapboxgl.Marker().setLngLat([{{.LatLng.Lng}}, {{.LatLng.Lat}}]) - ]; {{end}} + ]; return markers; }