diff options
Diffstat (limited to 'themes/CodeIT/exampleSite/content/posts/theme-documentation-extended-shortcodes')
3 files changed, 42 insertions, 0 deletions
diff --git a/themes/CodeIT/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.en.md b/themes/CodeIT/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.en.md index b6a00a1..dbf964b 100644 --- a/themes/CodeIT/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.en.md +++ b/themes/CodeIT/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.en.md @@ -959,6 +959,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 @@ -983,6 +987,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). 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). diff --git a/themes/CodeIT/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.zh-cn.md b/themes/CodeIT/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.zh-cn.md index 7d8cd55..3f7a4c1 100644 --- a/themes/CodeIT/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.zh-cn.md +++ b/themes/CodeIT/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.zh-cn.md @@ -962,6 +962,10 @@ data = [ 地图的高度, 默认值是 `20rem`. +- **properties** _[optional]_ + + GeoJSON sources and the layers of the map. + 一个简单的 `mapbox` 示例: ```markdown @@ -986,6 +990,16 @@ data = [ {{< mapbox -122.252 37.453 10 false "mapbox://styles/mapbox/streets-zh-v1?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 `music` shortcode 基于 [APlayer](https://github.com/MoePlayer/APlayer) 和 [MetingJS](https://github.com/metowolf/MetingJS) 提供了一个内嵌的响应式音乐播放器. |