diff --git a/style/americana.js b/style/americana.js index a2fbc0109..17a7ff2ce 100644 --- a/style/americana.js +++ b/style/americana.js @@ -37,6 +37,13 @@ americanaLayers.push( lyrPark.fill, lyrAeroway.fill, lyrPark.parkFill, + { + id: "hills", + type: "hillshade", + source: "hillshadeSource", + layout: { visibility: "visible" }, + paint: { "hillshade-shadow-color": "#473B24" }, + }, lyrBoundary.countyCasing, lyrBoundary.stateCasing, @@ -445,11 +452,25 @@ var style = { name: "Americana", glyphs: "https://fonts.openmaptiles.org/{fontstack}/{range}.pbf", layers: americanaLayers, + terrain: { + source: "terrainSource", + exaggeration: 1, + }, sources: { openmaptiles: { url: config.OPENMAPTILES_URL, type: "vector", }, + terrainSource: { + type: "raster-dem", + url: "https://tiles.wifidb.net/data/jaxa_terrainrgb.json", + tileSize: 256, + }, + hillshadeSource: { + type: "raster-dem", + url: "https://tiles.wifidb.net/data/jaxa_terrainrgb.json", + tileSize: 256, + }, }, sprite: new URL("sprites/sprite", baseUrl).href, light: { diff --git a/style/package-lock.json b/style/package-lock.json index 2daf4d3f2..1fbd5b492 100644 --- a/style/package-lock.json +++ b/style/package-lock.json @@ -13,7 +13,7 @@ "npm-run-all": "^4.1.5" }, "devDependencies": { - "maplibre-gl": "^2.1.9", + "maplibre-gl": "^2.2.0-pre.2", "openmapsamples-maplibre": "github:adamfranco/OpenMapSamples-MapLibre", "parcel": "^2.3.0", "prettier": "2.3.2", @@ -2845,9 +2845,9 @@ } }, "node_modules/maplibre-gl": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/maplibre-gl/-/maplibre-gl-2.1.9.tgz", - "integrity": "sha512-pnWJmILeZpgA5QSI7K7xFK3yrkyYTd9srw3fCi2Ca52Phm78hsznPwUErEQcZLfxXKn/1h9t8IPdj0TH0NBNbg==", + "version": "2.2.0-pre.2", + "resolved": "https://registry.npmjs.org/maplibre-gl/-/maplibre-gl-2.2.0-pre.2.tgz", + "integrity": "sha512-OYdiFUzLCBO/Kiteb9zRbnRN1qwWP2s4OdKLHHu3PaW/5SxE/kMthf7fWxygw5QEvx9DB4PKQ/TBx92y6VUsgA==", "dev": true, "hasInstallScript": true, "dependencies": { @@ -3226,6 +3226,38 @@ "openmapsamples": "github:adamfranco/OpenMapSamples" } }, + "node_modules/openmapsamples-maplibre/node_modules/maplibre-gl": { + "version": "2.1.9", + "resolved": "https://registry.npmjs.org/maplibre-gl/-/maplibre-gl-2.1.9.tgz", + "integrity": "sha512-pnWJmILeZpgA5QSI7K7xFK3yrkyYTd9srw3fCi2Ca52Phm78hsznPwUErEQcZLfxXKn/1h9t8IPdj0TH0NBNbg==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "@mapbox/geojson-rewind": "^0.5.1", + "@mapbox/jsonlint-lines-primitives": "^2.0.2", + "@mapbox/mapbox-gl-supported": "^2.0.1", + "@mapbox/point-geometry": "^0.1.0", + "@mapbox/tiny-sdf": "^2.0.4", + "@mapbox/unitbezier": "^0.0.1", + "@mapbox/vector-tile": "^1.3.1", + "@mapbox/whoots-js": "^3.1.0", + "@types/geojson": "^7946.0.8", + "@types/mapbox__point-geometry": "^0.1.2", + "@types/mapbox__vector-tile": "^1.3.0", + "@types/pbf": "^3.0.2", + "csscolorparser": "~1.0.3", + "earcut": "^2.2.3", + "geojson-vt": "^3.2.1", + "gl-matrix": "^3.4.3", + "murmurhash-js": "^1.0.0", + "pbf": "^3.2.1", + "potpack": "^1.0.2", + "quickselect": "^2.0.0", + "supercluster": "^7.1.4", + "tinyqueue": "^2.0.3", + "vt-pbf": "^3.1.3" + } + }, "node_modules/ordered-binary": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/ordered-binary/-/ordered-binary-1.2.4.tgz", @@ -6637,9 +6669,9 @@ } }, "maplibre-gl": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/maplibre-gl/-/maplibre-gl-2.1.9.tgz", - "integrity": "sha512-pnWJmILeZpgA5QSI7K7xFK3yrkyYTd9srw3fCi2Ca52Phm78hsznPwUErEQcZLfxXKn/1h9t8IPdj0TH0NBNbg==", + "version": "2.2.0-pre.2", + "resolved": "https://registry.npmjs.org/maplibre-gl/-/maplibre-gl-2.2.0-pre.2.tgz", + "integrity": "sha512-OYdiFUzLCBO/Kiteb9zRbnRN1qwWP2s4OdKLHHu3PaW/5SxE/kMthf7fWxygw5QEvx9DB4PKQ/TBx92y6VUsgA==", "dev": true, "requires": { "@mapbox/geojson-rewind": "^0.5.1", @@ -6940,6 +6972,39 @@ "requires": { "maplibre-gl": "^2.0", "openmapsamples": "github:adamfranco/OpenMapSamples" + }, + "dependencies": { + "maplibre-gl": { + "version": "2.1.9", + "resolved": "https://registry.npmjs.org/maplibre-gl/-/maplibre-gl-2.1.9.tgz", + "integrity": "sha512-pnWJmILeZpgA5QSI7K7xFK3yrkyYTd9srw3fCi2Ca52Phm78hsznPwUErEQcZLfxXKn/1h9t8IPdj0TH0NBNbg==", + "dev": true, + "requires": { + "@mapbox/geojson-rewind": "^0.5.1", + "@mapbox/jsonlint-lines-primitives": "^2.0.2", + "@mapbox/mapbox-gl-supported": "^2.0.1", + "@mapbox/point-geometry": "^0.1.0", + "@mapbox/tiny-sdf": "^2.0.4", + "@mapbox/unitbezier": "^0.0.1", + "@mapbox/vector-tile": "^1.3.1", + "@mapbox/whoots-js": "^3.1.0", + "@types/geojson": "^7946.0.8", + "@types/mapbox__point-geometry": "^0.1.2", + "@types/mapbox__vector-tile": "^1.3.0", + "@types/pbf": "^3.0.2", + "csscolorparser": "~1.0.3", + "earcut": "^2.2.3", + "geojson-vt": "^3.2.1", + "gl-matrix": "^3.4.3", + "murmurhash-js": "^1.0.0", + "pbf": "^3.2.1", + "potpack": "^1.0.2", + "quickselect": "^2.0.0", + "supercluster": "^7.1.4", + "tinyqueue": "^2.0.3", + "vt-pbf": "^3.1.3" + } + } } }, "ordered-binary": { diff --git a/style/package.json b/style/package.json index 21ecb9ba1..c7561167c 100644 --- a/style/package.json +++ b/style/package.json @@ -26,7 +26,7 @@ "npm-run-all": "^4.1.5" }, "devDependencies": { - "maplibre-gl": "^2.1.9", + "maplibre-gl": "^2.2.0-pre.2", "openmapsamples-maplibre": "github:adamfranco/OpenMapSamples-MapLibre", "parcel": "^2.3.0", "prettier": "2.3.2",