aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2024-01-22 01:20:42 +0100
committerGuilhem Moulin <guilhem@fripost.org>2024-01-22 02:34:35 +0100
commitd35a43f0e99d523e373c2810eaf31932cfb679d0 (patch)
tree7979144433d71f0697b110631b6b6115632322f2
parent903db548db931caca9fefc8afd6e0a1059a2fd39 (diff)
VectorTile: Don't filter MVT layers.
We're only exporting the layers of interest, no need for any further client-side filtering.
-rw-r--r--main.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/main.js b/main.js
index 01b797a..4ed491f 100644
--- a/main.js
+++ b/main.js
@@ -554,9 +554,7 @@ const layerHierarchy = [
const vectorSource = new VectorTile({
url: '/public/xyztiles/{z}/{x}/{y}.pbf',
- format: new MVT({
- layers: Object.keys(layers),
- }),
+ format: new MVT(),
projection: projection,
wrapX: false,
transition: 0,