地图组件和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

File diff suppressed because it is too large Load Diff

2066
assets/config/style.json Normal file

File diff suppressed because it is too large Load Diff

76
assets/osm_style.json Normal file
View File

@@ -0,0 +1,76 @@
{
"version": 8,
"projection": {
"type": "globe"
},
"name": "My Martin Map",
"sources": {
"worlddom_source": {
"type": "raster",
"tiles": [
"http://localhost:5656/dom_source/{z}/{x}/{y}"
],
"tileSize": 256,
"attribution": "Custom Satellite Data"
},
"hillshadeSource": {
"type": "raster-dem",
"url": "http://localhost:5656/dem_terrain/{z}/{x}/{y}",
"tileSize": 256
},
"elevation_source": {
"type": "raster-dem",
"tiles": [
"http://localhost:5656/dem_terrain/{z}/{x}/{y}"
],
"tileSize": 256,
"encoding": "terrarium"
}
},
"layers": [
{
"id": "hillshade_layer",
"type": "hillshade",
"source": "elevation_source",
"layout": {
"visibility": "visible"
},
"paint": {
"hillshade-shadow-color": "#473B24",
"hillshade-highlight-color": "#FFFFE0",
"hillshade-illumination-direction": 335,
"hillshade-exaggeration": 0.5
}
},
{
"id": "satellite_layer",
"type": "raster",
"source": "worlddom_source",
"minzoom": 0,
"maxzoom": 11
}
],
"terrain": {
"source": "elevation_source",
"exaggeration": 0.01
},
"sky": {
"atmosphere-blend": [
"interpolate",
["linear"],
["zoom"],
0, 1,
5, 1,
7, 0
]
},
"light": {
"anchor": "map",
"position": [1.5, 60, 45]
}
}

10925
assets/pmtiles_style.json Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,33 @@
{
"version": 8,
"projection": {
"type": "globe"
},
"sources": {
"satellite": {
"tiles": ["https://tiles.maps.eox.at/wmts/1.0.0/s2cloudless-2020_3857/default/g/{z}/{y}/{x}.jpg"],
"type": "raster"
}
},
"layers": [
{
"id": "Satellite",
"type": "raster",
"source": "satellite"
}
],
"sky": {
"atmosphere-blend": [
"interpolate",
["linear"],
["zoom"],
0, 1,
5, 1,
7, 0
]
},
"light": {
"anchor": "map",
"position": [1.5, 60, 45]
}
}

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
}
}
]
}