Add `leaflet-marker.html` as a shortcode for map marker.

This commit is contained in:
Kazuhiro MUSASHI 2019-04-11 00:51:27 +08:00
parent 9cffb5d267
commit 78fd1b8673
1 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1,4 @@
<script>
var marker = L.marker([{{ .Get "lat" }}, {{ .Get "long" }}]).addTo(mymap);
marker.bindPopup("{{ .Get "msg" }}").openPopup();
</script>