diff options
author | Christoph Cullmann <cullmann@kde.org> | 2021-08-29 11:48:16 +0200 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2021-08-29 11:48:16 +0200 |
commit | 0321812a29e6ec32663556fa7abe2bf2880e5762 (patch) | |
tree | abe0294bd63c046d2b5a164d987d67a64db2c2f6 /themes/CodeIT/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.fr.md | |
parent | f2375511935010a1aeee5683c30b3efb928bef2e (diff) |
update to https://github.com/sunt-programator/CodeIT/releases/tag/v0.2.0
Diffstat (limited to 'themes/CodeIT/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.fr.md')
-rw-r--r-- | themes/CodeIT/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.fr.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/themes/CodeIT/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.fr.md b/themes/CodeIT/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.fr.md index 6641605..2dee33d 100644 --- a/themes/CodeIT/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.fr.md +++ b/themes/CodeIT/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.fr.md @@ -964,6 +964,10 @@ The `mapbox` shortcode has the following named parameters to use Mapbox GL JS: Height of the map, default value is `20rem`. +- **properties** _[optional]_ + + GeoJSON sources and the layers of the map. + Example simple `mapbox` input: ```markdown @@ -988,6 +992,16 @@ The rendered output looks like this: {{< mapbox -122.252 37.453 10 false "mapbox://styles/mapbox/navigation-preview-day-v4?optimize=true" "mapbox://styles/mapbox/navigation-preview-night-v4?optimize=true" >}} +Example `mapbox` input with the GetJSON data: + +```markdown +{{</* mapbox lng=28.836 lat=47.021 zoom=8 marked=false properties="/static/features-layers.json" */>}} +``` + +The rendered output looks like this: + +{{< mapbox lng=28.836 lat=47.021 zoom=8 marked=false properties="/static/features-layers.json" >}} + ## 8 music The `music` shortcode embeds a responsive music player based on [APlayer](https://github.com/MoePlayer/APlayer) and [MetingJS](https://github.com/metowolf/MetingJS). |