mirror of
https://gitlab.com/mrubli/hugo-mod-leaflet.git
synced 2025-10-07 01:54:24 +00:00
README.md: Whitespace fixes
This commit is contained in:
21
README.md
21
README.md
@@ -8,15 +8,15 @@ Here's an example use of the map shortcodes provided by hugo-mod-leaflet:
|
|||||||
|
|
||||||
```go-html-template
|
```go-html-template
|
||||||
{{< leaflet-map resizable=false >}}
|
{{< leaflet-map resizable=false >}}
|
||||||
{{< leaflet-layer id="ch.swisstopo.pixelkarte-farbe" selectorPosition="bottomleft" >}}
|
{{< leaflet-layer id="ch.swisstopo.pixelkarte-farbe" selectorPosition="bottomleft" >}}
|
||||||
{{< leaflet-layer id="ch.swisstopo.swissimage" >}}
|
{{< leaflet-layer id="ch.swisstopo.swissimage" >}}
|
||||||
{{< leaflet-layer id="ch.swisstopo.swisstlm3d-wanderwege" >}}
|
{{< 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 >}}
|
{{< /leaflet-map >}}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -32,17 +32,11 @@ The current shortcode documentation is contained at the top of [leaflet-map.html
|
|||||||
|
|
||||||
```go-html-template
|
```go-html-template
|
||||||
{{< leaflet-map centerLat=FLOAT centerLon=FLOAT zoom=INT width="STRING" height="STRING" resizable=BOOL maximizable=BOOL freezable=BOOL freezeOptions="STRING" >}}
|
{{< 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-layer id="STRING" apiKey="STRING" >}}
|
||||||
|
|
||||||
{{< leaflet-marker lat=FLOAT lon=FLOAT >}}
|
{{< leaflet-marker lat=FLOAT lon=FLOAT >}}
|
||||||
|
|
||||||
{{< leaflet-track path="URL" title="STRING" downloadable=BOOL >}}
|
{{< leaflet-track path="URL" title="STRING" downloadable=BOOL >}}
|
||||||
|
|
||||||
{{< leaflet-scale >}}
|
{{< leaflet-scale >}}
|
||||||
|
|
||||||
{{< leaflet-elevation-profile expanded=BOOL resizable=BOOL width=INT height=INT minWidth=INT minHeight=INT maxWidth=INT maxHeight=INT >}}
|
{{< leaflet-elevation-profile expanded=BOOL resizable=BOOL width=INT height=INT minWidth=INT minHeight=INT maxWidth=INT maxHeight=INT >}}
|
||||||
|
|
||||||
{{< /leaflet-map >}}
|
{{< /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
|
https://map.geo.admin.ch/?topic=swisstopo&bgLayer=ch.swisstopo.pixelkarte-farbe&lang=en&layers=ch.swisstopo-karto.schneeschuhrouten&layers_opacity=0.8
|
||||||
Notes:
|
Notes:
|
||||||
① API key required.
|
① API key required.
|
||||||
② Uses EPSG-2056 (Swiss CH1903+/LV95) projection. Cannot be combined with EPSG3857
|
② Uses EPSG-2056 (Swiss CH1903+/LV95) projection. Cannot be combined with EPSG3857 (WGS 84) map layers.
|
||||||
(WGS 84) map layers.
|
|
||||||
apiKey:
|
apiKey:
|
||||||
API key for tile access.
|
API key for tile access.
|
||||||
selectorPosition:
|
selectorPosition:
|
||||||
|
Reference in New Issue
Block a user