inspector basemap improvements [#49]

This commit is contained in:
Brandon Liu
2023-02-07 15:57:01 +08:00
parent 25382d2605
commit 28df71c588
3 changed files with 6 additions and 6 deletions

8
app/package-lock.json generated
View File

@@ -22,7 +22,7 @@
"maplibre-gl": "^2.1.9", "maplibre-gl": "^2.1.9",
"pbf": "^3.2.1", "pbf": "^3.2.1",
"protomaps": "^1.19.0", "protomaps": "^1.19.0",
"protomaps-themes-base": "1.1.1", "protomaps-themes-base": "1.2.0",
"react": "^18.0.0", "react": "^18.0.0",
"react-dom": "^18.0.0", "react-dom": "^18.0.0",
"react-dropzone": "^14.1.1", "react-dropzone": "^14.1.1",
@@ -2697,9 +2697,9 @@
} }
}, },
"node_modules/protomaps-themes-base": { "node_modules/protomaps-themes-base": {
"version": "1.1.1", "version": "1.2.0",
"resolved": "https://registry.npmjs.org/protomaps-themes-base/-/protomaps-themes-base-1.1.1.tgz", "resolved": "https://registry.npmjs.org/protomaps-themes-base/-/protomaps-themes-base-1.2.0.tgz",
"integrity": "sha512-LlI+6wdTmfolpP+jfxFgv4t070EMj8og9x6jaCM862H5Owb8RyDisnRGr6LST2l7i2m0z+20xmKKoUIx9a+VCQ==" "integrity": "sha512-SktPnoJBhcbilzXBQYBVhnvFa5x34JHXc/9ZVpTvUGqHDkxtlExrQSwSuAmfoLOCE6/FueXJDDk+EuSjDCefKA=="
}, },
"node_modules/protomaps/node_modules/@mapbox/unitbezier": { "node_modules/protomaps/node_modules/@mapbox/unitbezier": {
"version": "0.0.0", "version": "0.0.0",

View File

@@ -22,7 +22,7 @@
"maplibre-gl": "^2.1.9", "maplibre-gl": "^2.1.9",
"pbf": "^3.2.1", "pbf": "^3.2.1",
"protomaps": "^1.19.0", "protomaps": "^1.19.0",
"protomaps-themes-base": "1.1.1", "protomaps-themes-base": "1.2.0",
"react": "^18.0.0", "react": "^18.0.0",
"react-dom": "^18.0.0", "react-dom": "^18.0.0",
"react-dropzone": "^14.1.1", "react-dropzone": "^14.1.1",

View File

@@ -102,7 +102,7 @@ const vectorStyle = async (file: PMTiles): Promise<any> => {
let layers: any[] = []; let layers: any[] = [];
if (metadata.type !== "baselayer") { if (metadata.type !== "baselayer") {
layers = base_theme("basemap", "dark"); layers = base_theme("basemap", "black");
layers[0].paint["background-color"] = "black"; layers[0].paint["background-color"] = "black";
} }