map_venues.html 458 Bytes
Newer Older
zauberstuhl's avatar
zauberstuhl committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<script>
{{range .CurrentUser.Locations}}
  var marker = L.marker([{{.Lat}}, {{.Lng}}]).addTo(mymap);
  marker.bindPopup(`
    <table>
      <tr>
        <td><img src="{{.Icon}}" alt="{{.Name}}"/></td>
        <td><b>{{.Name}}</b></td>
      </tr>
      <tr>
        <td class="text-center pt-2" colspan="2">
          Link: <a href="{{.Url}}">{{.Url}}</a><br>
          Category: {{.Category}}
        </td>
      </tr>
    </table>
  `);
{{end}}
</script>