地图组件和ECS框架完成

This commit is contained in:
2026-01-13 15:39:45 +08:00
parent 9d45d4c726
commit 566ec47a73
24 changed files with 17072 additions and 66 deletions

26
assets/style.json Normal file
View File

@@ -0,0 +1,26 @@
{
"version": 8,
"sources": {
"my-mbtiles-source": {
"type": "vector",
"tiles": [
"http://localhost:5656/osm_vector/{z}/{x}/{y}.pbf"
],
"minzoom": 0,
"maxzoom": 14
}
},
"layers": [
{
"id": "my-layer",
"type": "line",
"source": "my-mbtiles-source",
"source-layer": "your_layer_name_in_mbtiles",
"paint": {
"line-color": "#ff0000",
"line-width": 2
}
}
]
}