Open Infrastructure Map, a view of infrastructure data in OpenStreetMap
Upgrade maplibre and enable globe
Russ Garrett62b9d9c8be98
diff --git a/web/package-lock.json b/web/package-lock.jsonindex b103a6d..a25953c 100644--- a/web/package-lock.json+++ b/web/package-lock.json@@ -12,7 +12,7 @@"lodash.invert": "^4.3.0","lodash.isequal": "^4.5.0","lodash.sortby": "^4.7.0",- "maplibre-gl": "^4.6.0",+ "maplibre-gl": "^v5.0.0-pre.1","redom": "^3.29.1","title-case": "^3.0.3"},@@ -2576,9 +2576,9 @@"integrity": "sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA=="},"node_modules/maplibre-gl": {- "version": "4.6.0",- "resolved": "https://registry.npmjs.org/maplibre-gl/-/maplibre-gl-4.6.0.tgz",- "integrity": "sha512-zobZK+fE+XM+7K81fk5pSBYWZlTGjGT0P96y2fR4DV2ry35ZBfAd0uWNatll69EgYeE+uOhN1MvEk+z1PCuyOQ==",+ "version": "5.0.0-pre.1",+ "resolved": "https://registry.npmjs.org/maplibre-gl/-/maplibre-gl-5.0.0-pre.1.tgz",+ "integrity": "sha512-+J6W3RKQJiqGUmOsO42mS3ZyYxwhMwRaqh/DPfdhHcFXH49pZ16kZg0sBy4yvtJruasQA22WOZcRY/38ZUPihA==","dependencies": {"@mapbox/geojson-rewind": "^0.5.2","@mapbox/jsonlint-lines-primitives": "^2.0.2",diff --git a/web/package.json b/web/package.jsonindex c4271ac..b8d9bfe 100644--- a/web/package.json+++ b/web/package.json@@ -35,7 +35,7 @@"lodash.invert": "^4.3.0","lodash.isequal": "^4.5.0","lodash.sortby": "^4.7.0",- "maplibre-gl": "^4.6.0",+ "maplibre-gl": "^v5.0.0-pre.1","redom": "^3.29.1","title-case": "^3.0.3"}diff --git a/web/src/index.css b/web/src/index.cssindex ff6ada1..027a74b 100644--- a/web/src/index.css+++ b/web/src/index.css@@ -17,6 +17,7 @@ body,#container {display: block !important;+ background-color: #223;}header {diff --git a/web/src/style/style.ts b/web/src/style/style.tsindex 70d4de0..7749b3f 100644--- a/web/src/style/style.ts+++ b/web/src/style/style.ts@@ -3,6 +3,24 @@ import { StyleSpecification } from 'maplibre-gl'const style: StyleSpecification = {version: 8,name: 'OpenInfraMap',+ projection: {+ type: 'globe'+ },+ sky: {+ 'sky-color': '#3BEAED',+ 'horizon-color': '#863BED',+ 'fog-color': '#C3E3F5',+ 'sky-horizon-blend': 0.5,+ 'horizon-fog-blend': 0.5,+ 'fog-ground-blend': 0.5,+ 'atmosphere-blend': ['interpolate', ['linear'], ['zoom'], 2, 0.4, 4, 0]+ },+ light: {+ anchor: 'viewport',+ color: '#F5F02E',+ intensity: 1,+ position: [1, 90, 90]+ },sources: {openmaptiles: {type: 'vector',diff --git a/web/src/style/style_labels.ts b/web/src/style/style_labels.tsindex cd9d5e9..b8cb46f 100644--- a/web/src/style/style_labels.ts+++ b/web/src/style/style_labels.ts@@ -197,6 +197,7 @@ const layers: LayerSpecificationWithZIndex[] = [type: 'symbol',source: 'openmaptiles','source-layer': 'place',+ minzoom: 3,maxzoom: 8,filter: ['all',@@ -221,6 +222,7 @@ const layers: LayerSpecificationWithZIndex[] = [type: 'symbol',source: 'openmaptiles','source-layer': 'place',+ minzoom: 3,maxzoom: 5,filter: ['all',