Replies: 1 comment
-
if you are using the source You could instantiate a PMTiles object and pass it in like this (more complicated) then call |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just had a wonderful debugging session related to the
source-layer
property of pmtiles/mbtiles and maplibre.The issue is, that maplibre requires a specific
source-layer
to be set which must be present in the pmtiles.However, there really is not good way to see the source layers that are available from inside my toolchain (maplibre, react map gl, maplibre pmtiles plugin).
Usually I work around this by setting the layer to
default
when I generate my pmtiles with tippecanoe.However this time, I forgot that this old dataset has a
feature.tippecanoe.layer
property which apparently overwrites the command line layer name.I can inspect the layer names using the pm tiles preview in "vector_layers" "id".
My question is: Would it be possible to expose some tooling within the maplibre pmtiles package that allows to call "pmtiles.getLayerNames" which returns a list of layers? Or is there a different way I could use to give me some debugging help inside my application?
Beta Was this translation helpful? Give feedback.
All reactions