mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-03-13 08:12:58 +00:00
Compare commits
3 Commits
graphhoppe
...
375204c379
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
375204c379 | ||
|
|
d76c03af4f | ||
|
|
200a6586ba |
@@ -17,7 +17,6 @@
|
||||
}
|
||||
},
|
||||
"sprite": "https://demotiles.maplibre.org/styles/osm-bright-gl-style/sprite",
|
||||
"glyphs": "https://api.maptiler.com/fonts/{fontstack}/{range}.pbf?key={key}",
|
||||
"layers": [
|
||||
{
|
||||
"id": "background",
|
||||
|
||||
@@ -212,16 +212,21 @@ export class MapboxGLMap {
|
||||
const map = get(this._map);
|
||||
if (map) {
|
||||
const source = get(terrainSource);
|
||||
if (!map.getSource(source)) {
|
||||
map.addSource(source, terrainSources[source]);
|
||||
}
|
||||
if (map.getPitch() > 0) {
|
||||
map.setTerrain({
|
||||
source: source,
|
||||
exaggeration: 1,
|
||||
});
|
||||
} else {
|
||||
map.setTerrain(null);
|
||||
try {
|
||||
if (!map.getSource(source)) {
|
||||
map.addSource(source, terrainSources[source]);
|
||||
}
|
||||
if (map.getPitch() > 0) {
|
||||
map.setTerrain({
|
||||
source: source,
|
||||
exaggeration: 1,
|
||||
});
|
||||
} else {
|
||||
map.setTerrain(null);
|
||||
}
|
||||
} catch (e) {
|
||||
// No reliable way to check if the map is ready to add sources and layers
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ Create a copy of the currently selected files.
|
||||
|
||||
### <FileX size="16" class="inline-block" style="margin-bottom: 2px" /> Delete
|
||||
|
||||
Delete the currently selected files.
|
||||
.
|
||||
|
||||
### <FileX size="16" class="inline-block" style="margin-bottom: 2px" /> Delete all
|
||||
|
||||
|
||||
@@ -282,7 +282,7 @@
|
||||
"update": "Aktualizovat vrstvu"
|
||||
},
|
||||
"opacity": "Průhlednost překryvu",
|
||||
"terrain": "Terrain source",
|
||||
"terrain": "Zdroj terénu",
|
||||
"label": {
|
||||
"basemaps": "Základní mapy",
|
||||
"overlays": "Překrytí",
|
||||
|
||||
@@ -282,7 +282,7 @@
|
||||
"update": "Actualizar capa"
|
||||
},
|
||||
"opacity": "Opacidad de la capa superpuesta",
|
||||
"terrain": "Terrain source",
|
||||
"terrain": "Origen del terreno",
|
||||
"label": {
|
||||
"basemaps": "Mapas base",
|
||||
"overlays": "Capas",
|
||||
|
||||
@@ -282,7 +282,7 @@
|
||||
"update": "Update laag"
|
||||
},
|
||||
"opacity": "Laag Transparantie",
|
||||
"terrain": "Terrain source",
|
||||
"terrain": "Terrein bron",
|
||||
"label": {
|
||||
"basemaps": "Basis kaarten",
|
||||
"overlays": "Lagen",
|
||||
|
||||
@@ -282,7 +282,7 @@
|
||||
"update": "Zaktualizuj warstwę"
|
||||
},
|
||||
"opacity": "Przezroczystość nakładki",
|
||||
"terrain": "Terrain source",
|
||||
"terrain": "Źródło danych terenowych",
|
||||
"label": {
|
||||
"basemaps": "Mapy bazowe",
|
||||
"overlays": "Nakładki",
|
||||
|
||||
Reference in New Issue
Block a user