dorfylegends/backend/templates/worldMap.html

34 lines
612 B
HTML
Raw Normal View History

2022-05-07 18:08:42 +03:00
{{template "layout.html" .}}
{{define "title"}}Legends Browser{{end}}
{{define "content"}}
<div id="map" style="width: 100%; height: 1000px"></div>
{{initMap}}
2022-05-08 10:35:57 +03:00
<script>L.control.layers(null, overlayMaps).addTo(map);</script>
2022-05-07 18:08:42 +03:00
{{- range .Landmasses }}
{{ addLandmass .Id }}
{{- end }}
{{- range .Regions }}
{{ addRegion .Id }}
{{- end }}
{{- range .Sites }}
2022-05-08 10:35:57 +03:00
{{ addSite .Id true }}
2022-05-07 18:08:42 +03:00
{{- end }}
{{- range .MountainPeaks }}
2022-05-08 10:35:57 +03:00
{{ addMountain .Id true }}
2022-05-07 18:08:42 +03:00
{{- end }}
{{- range .WorldConstructions }}
{{ addWorldConstruction .Id }}
{{- end }}
{{- range $id, $r := .Rivers }}
{{ addRiver $id }}
{{- end }}
{{- end }}