地图组件和ECS框架完成
This commit is contained in:
76
assets/osm_style.json
Normal file
76
assets/osm_style.json
Normal 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]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user