2022-05-07 18:08:42 +03:00
|
|
|
{{template "layout.html" .}}
|
|
|
|
|
|
|
|
{{define "title"}}Legends Browser{{end}}
|
|
|
|
|
|
|
|
{{define "content"}}
|
|
|
|
|
2022-05-10 10:51:04 +03:00
|
|
|
{{ if world.MapReady }}
|
2022-05-07 18:08:42 +03:00
|
|
|
<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 }}
|
2022-05-10 10:51:04 +03:00
|
|
|
{{ else }}
|
|
|
|
No map data available
|
|
|
|
{{- end }}
|
2022-05-07 18:08:42 +03:00
|
|
|
|
|
|
|
{{- end }}
|