项目
在 GitHub 查看
w3cj/openfreemap-examples
关于
Examples for react, vue, svelte and vanilla js using OpenFreeMap.org tiles with MapLibre GL JS libraries.
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文OpenFreeMap + MapLibre GL JS Examples
Basic examples using OpenFreeMap.org tiles with MapLibre GL JS libraries.
- Each example:
- Loads the base MapLibre GL JS map
- style url set to
https://tiles.openfreemap.org/styles/liberty - option to set style url to
/styles/dark.json- hosted in the public folder of each app
- dark style adapted from maptiler.com basic-v2-dark style
- Gets the users location via http://ip-api.com/json/
- Uses
map.flyToto animate / zoom to the users location - Displays a Popup on the map at the users location
Examples
- Vanilla JS / HTML
- built with core MapLibre GL JS loaded from unpkg cdn
- React Example
- built with @vis.gl/react-maplibre
- Vue Example
- built with @indoorequal/vue-maplibre-gl
- Svelte Example
- built with svelte-maplibre
- Vanilla JS / HTML + LeafletJS
- same as vanilla-example but uses leaflet instead
探索相关项目
加载中…