diff --git a/README.md b/README.md index 66afdc4..3ea4606 100644 --- a/README.md +++ b/README.md @@ -8,15 +8,15 @@ Here's an example use of the map shortcodes provided by hugo-mod-leaflet: ```go-html-template {{< leaflet-map resizable=false >}} - {{< leaflet-layer id="ch.swisstopo.pixelkarte-farbe" selectorPosition="bottomleft" >}} - {{< leaflet-layer id="ch.swisstopo.swissimage" >}} - {{< leaflet-layer id="ch.swisstopo.swisstlm3d-wanderwege" >}} + {{< leaflet-layer id="ch.swisstopo.pixelkarte-farbe" selectorPosition="bottomleft" >}} + {{< leaflet-layer id="ch.swisstopo.swissimage" >}} + {{< leaflet-layer id="ch.swisstopo.swisstlm3d-wanderwege" >}} - {{< leaflet-scale position="bottomright" >}} + {{< leaflet-scale position="bottomright" >}} - {{< leaflet-track path="track.gpx" color="DarkRed" >}} + {{< leaflet-track path="track.gpx" color="DarkRed" >}} - {{< leaflet-elevation-profile expanded=true resizable=true width=300 height=150 >}} + {{< leaflet-elevation-profile expanded=true resizable=true width=300 height=150 >}} {{< /leaflet-map >}} ``` @@ -32,17 +32,11 @@ The current shortcode documentation is contained at the top of [leaflet-map.html ```go-html-template {{< leaflet-map centerLat=FLOAT centerLon=FLOAT zoom=INT width="STRING" height="STRING" resizable=BOOL maximizable=BOOL freezable=BOOL freezeOptions="STRING" >}} - {{< leaflet-layer id="STRING" apiKey="STRING" >}} - {{< leaflet-marker lat=FLOAT lon=FLOAT >}} - {{< leaflet-track path="URL" title="STRING" downloadable=BOOL >}} - {{< leaflet-scale >}} - {{< leaflet-elevation-profile expanded=BOOL resizable=BOOL width=INT height=INT minWidth=INT minHeight=INT maxWidth=INT maxHeight=INT >}} - {{< /leaflet-map >}} ``` @@ -106,8 +100,7 @@ id: https://map.geo.admin.ch/?topic=swisstopo&bgLayer=ch.swisstopo.pixelkarte-farbe&lang=en&layers=ch.swisstopo-karto.schneeschuhrouten&layers_opacity=0.8 Notes: ① API key required. - ② Uses EPSG-2056 (Swiss CH1903+/LV95) projection. Cannot be combined with EPSG3857 - (WGS 84) map layers. + ② Uses EPSG-2056 (Swiss CH1903+/LV95) projection. Cannot be combined with EPSG3857 (WGS 84) map layers. apiKey: API key for tile access. selectorPosition: