mirror of
https://github.com/maputnik/editor.git
synced 2026-02-09 14:10:00 +00:00
update to pmtiles 3.2.0 to make inspector work.
This commit is contained in:
committed by
Pirmin Kalberer
parent
f9db0d9b5c
commit
498b7d76de
8
package-lock.json
generated
8
package-lock.json
generated
@@ -43,7 +43,7 @@
|
||||
"maputnik-design": "github:maputnik/design#172b06c",
|
||||
"ol": "^6.14.1",
|
||||
"ol-mapbox-style": "^7.1.1",
|
||||
"pmtiles": "^3.1.0",
|
||||
"pmtiles": "^3.2.0",
|
||||
"prop-types": "^15.8.1",
|
||||
"react": "^18.2.0",
|
||||
"react-accessible-accordion": "^5.0.0",
|
||||
@@ -8861,9 +8861,9 @@
|
||||
"integrity": "sha512-VJK1SRmXBpjwsB4YOHYSturx48rLKMzHgCqDH2ZDa6ZbMS/N5huoNqyQdK5Fj/xayu3fqbXckn5SeCS1EbMDZg=="
|
||||
},
|
||||
"node_modules/pmtiles": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/pmtiles/-/pmtiles-3.1.0.tgz",
|
||||
"integrity": "sha512-6JvgAQ8gElP1Ilg6ILM4KqleeKS+QcwpW8PXqhPWjRFmqF42yyUJ8sP3dZHQXm+G0HYXuw1kGlMTdVEs583pCQ==",
|
||||
"version": "3.2.0",
|
||||
"resolved": "https://registry.npmjs.org/pmtiles/-/pmtiles-3.2.0.tgz",
|
||||
"integrity": "sha512-4v3Nw5xeMxaUReLZQTz3PyM4VM/Lx/Xp/rc2GGEWMl0nqAmcb+gjyi+eOTwfPu8LnB0ash36hz0dV76uYvih5A==",
|
||||
"license": "BSD-3-Clause",
|
||||
"dependencies": {
|
||||
"@types/leaflet": "^1.9.8",
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
"maputnik-design": "github:maputnik/design#172b06c",
|
||||
"ol": "^6.14.1",
|
||||
"ol-mapbox-style": "^7.1.1",
|
||||
"pmtiles": "^3.1.0",
|
||||
"pmtiles": "^3.2.0",
|
||||
"prop-types": "^15.8.1",
|
||||
"react": "^18.2.0",
|
||||
"react-accessible-accordion": "^5.0.0",
|
||||
|
||||
@@ -149,7 +149,7 @@ class MapMaplibreGlInternal extends React.Component<MapMaplibreGlInternalProps,
|
||||
localIdeographFontFamily: false
|
||||
} satisfies MapOptions;
|
||||
|
||||
let protocol = new Protocol();
|
||||
let protocol = new Protocol({metadata: true});
|
||||
MapLibreGl.addProtocol("pmtiles",protocol.tile);
|
||||
const map = new MapLibreGl.Map(mapOpts);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user