hugo-fixit / FixIt

🔧 A clean, elegant but advanced blog theme for Hugo 一个简洁、优雅且高效的 Hugo 主题
https://fixit.lruihao.cn
MIT License
769 stars 106 forks source link

:sparkles: Feat: more markers can be added to mapbox #506

Closed Tim-Saijun closed 1 month ago

Tim-Saijun commented 1 month ago
{{< mapbox 
    lng=120.13066322374  lat=30.240018034923  zoom=12 marked=true 
    markers="[{\"lng\": 120.13066322374, \"lat\": 30.240018034926, \"description\": \"标记 1\"},{\"lng\": 120.13367222378, \"lat\": 30.245038134925, \"description\": \"标记 2\"},{\"lng\": 120.12866322380,\"lat\": 30.243028134925, \"description\": \"标记 3\"}]" 
    light-style="mapbox://styles/mapbox/streets-zh-v1" >}}

{{< mapbox lng=120.13066322374  lat=30.240018034923  zoom=12 marked=true light-style="mapbox://styles/mapbox/streets-zh-v1" >}}
{{< mapbox 113.953277 22.559102 11 >}}

实现效果

Snipaste_2024-09-23_14-11-55
vercel[bot] commented 1 month ago

@Tim-Saijun is attempting to deploy a commit to the FixIt Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fixit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 23, 2024 7:51am
Lruihao commented 1 month ago

Docs: https://fixit.lruihao.cn/documentation/content-management/shortcodes/extended/mapbox/#multiple-markers-example