hugo-leaflet icon indicating copy to clipboard operation
hugo-leaflet copied to clipboard

Add Shortcut with multible Markers

Open simonfrey opened this issue 8 years ago • 2 comments

  1. Copy the "layouts/shortcodes/leaflet-simple.html" to a new Shortcut ""layouts/shortcodes/leaflet-multible-markers.html".
  2. Change the simple shortcut in a way to accept multible markers (maybe via JSON structure?)

The hugo shortcut for the multible marker function should look somehow like this: {{< leaflet-multible-markers mapHeight='[MAPHEIGHT]' mapWidth='[MAPWIDTH]' mapLon='[MAPLON]' mapLat='[MAPLAT]' markers='{["markerLon"="[MARKERLON]" "markerLat"="[MARKERLAT]" "markerContent"="[MARKERCONTENT]"]}'>}}

simonfrey avatar Oct 02 '17 07:10 simonfrey

I'm interest in such feature as I plan to create a map of my hiking-related posts.

guyou avatar Sep 04 '19 19:09 guyou

I would also love love such a feature with an array of markers. Multiple marker on map to keep track of owls nests.

gyldensaa avatar Feb 24 '21 09:02 gyldensaa