PMTiles icon indicating copy to clipboard operation
PMTiles copied to clipboard

canvas tile display seems to be transparent :/

Open DavidDvpt opened this issue 3 years ago • 2 comments

hi, i'm using our own pmtiles tileset server, the test url is : https://tilesets.urbanease.io/cadastre/64/64102/without_protobuf.pmtiles the location for seeing it is :bayonne, france latlng=[43.492949,-1.474841]

on the viewer, all seems to be ok bit leaflet preview don't work viewer i'm using react and leaflet with the npm protomaps package version 1.19.0

my code is simple const map = useMap(); const url = 'https://tilesets.urbanease.io/cadastre/64/64102/without_protobuf.pmtiles'; const layer = protomaps.leafletLayer({ url: url, id: 'cadastral', }); layer.addTo(map);

canvas are created but seems to be transparent, colors in paint_rules layer are good and opacity ok

i don't understand where is the pb bad pmtiles file? no compatibility with leaflet? thx for help

DavidDvpt avatar Aug 12 '22 09:08 DavidDvpt

did you set the paint_rules to match the layers in your file? do you know what the layers are named in the tiles?

bdon avatar Aug 12 '22 16:08 bdon

i tryed to write my own paint_rules yes but nothing change but it is really possible the layers have different name. I will ask my colleague who created the pmtiles files and be back for answer :)

DavidDvpt avatar Aug 12 '22 21:08 DavidDvpt

hi :) it was that geojson => mbtiles => pmtiles the mbtile to pmtiles process regroup all layers in one named 64102. my data department teammate is on it to fix thx for your help

DavidDvpt avatar Aug 17 '22 14:08 DavidDvpt

@DavidDvpt what tool are you using going geojson > mbtiles?

bdon avatar Aug 18 '22 08:08 bdon

hi :) my teammate tells me :

tippecanoe geojson -> mbtiles pmtiles-convert mbtiles -> pmtiles

DavidDvpt avatar Aug 18 '22 08:08 DavidDvpt