Martin Rubli
1c8bce4a66
layouts: layer: Allow retrieving API key from config
...
The config key name is the layer name with '.' replaced with '_'. For example:
params:
modules:
leaflet:
com_thunderforest_outdoors:
apiKey: abcdef1234567890abcdef1234567890
If the key is specified in both the config file and the tag attribute, the
latter takes precedence.
Implements #6
2025-04-15 17:20:13 +02:00
Martin Rubli
8525f00af0
layouts: map: Document track options 'color' and 'opacity'
2024-04-26 15:11:23 +02:00
Martin Rubli
4e3d0a9626
layouts: map: Allow customizing track color and opacity
2023-12-30 18:56:28 +01:00
Martin Rubli
5991d8527f
layouts: map: Add leaflet-map parameters for controlling Leaflet.Freezy options
2023-12-30 18:56:28 +01:00
Martin Rubli
6f9ffd0b77
layouts: map: Make tracks downloadable
2023-12-30 18:56:28 +01:00
Martin Rubli
f3746e0fc4
layouts: map: Make unique ID unique on page, not only shortcut parent
...
The SHORTCODE.Ordinal method "returns the zero-based ordinal of the shortcode in
relation to its parent." (https://gohugo.io/methods/shortcode/ordinal/ )
This is a problem if the same shortcode is used on the different page through
different paths, e.g. once on the page itself and once by a partial (e.g. a
header or footer).
Instead of just using the .Ordinal by itself, use a hash of the parent file
_and_ the ordinal, which gives us a properly unique identifier.
2023-12-18 23:35:44 +01:00
Martin Rubli
0384314398
layouts: map: Enable freezing of maps (scroll capture protection) by default
2023-12-18 23:35:20 +01:00
Martin Rubli
873bafef2b
layouts: map: Fix accidentally quoted true value in generated JS
...
This doesn't seem to have had any practical impact, though.
2023-12-18 23:35:20 +01:00
Martin Rubli
e97f51ab4d
layouts: map: Document the available Swisstopo layers
2023-10-26 21:56:51 +02:00
Martin Rubli
8258a580e7
layouts: map: Add option to make map non-maximizable
2023-10-24 22:17:57 +02:00
Martin Rubli
440f144cb9
layouts: map: Add option to make map non-resizable
2023-10-24 22:17:57 +02:00
Martin Rubli
e5da3c0bd8
layouts: map: Update leaflet-elevation-profile documentation
2023-10-24 22:17:57 +02:00
Martin Rubli
8deb7c4698
layouts: map: Add elevation profile option to not expand graph by default
2023-10-24 22:17:57 +02:00
Martin Rubli
cad859304d
layouts: map: Change defaults for width/height to auto and 50vh
2023-10-17 22:58:01 +02:00
Martin Rubli
78588d0c2d
layouts: map: Allow specifying width/height in the shortcode tag
2023-10-16 21:13:04 +02:00
Martin Rubli
f010baf633
static: css: Place attributions below the map they belong to
...
Previously all attributions were placed below the last map on the page.
2023-10-16 21:13:04 +02:00
Martin Rubli
f1a1b8ed53
layouts: elevation-profile: Add width/height parameters
2023-10-16 21:13:04 +02:00
Martin Rubli
c7fb817a0b
layouts: scale: Add position parameter
2023-10-16 21:13:04 +02:00
Martin Rubli
475cb4fd5d
layouts: layer: Add selectorPosition parameter
2023-10-16 21:13:04 +02:00
Martin Rubli
88b9607472
layouts: Add shortcodes for various leaflet map elements
2023-10-16 21:13:04 +02:00