Error: Wrong magic number for PMTiles archive at http://localhost:4200/ #211
-
I tried creating my own PMtiles using OSM data thinking I might able to get more local markers than the one from protmaps small map download. I used osm.pbf file and converted it to 5 different geojson files using ogr2ogr. The layers being points,lines,multilinestrings,multipolygons and other-relations. I then used tippecanoe to merge all 5 layers into a single Pmtile using the steps given here. However, when I try using it, I get the error from the title from maplibre gl js when I add the source. Listing the commands and versions below. Please let me know if you can see the issue somewhere. The osm file is a geofabrik download with correct MD5 hashsum. Thanks!
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You need to use tippecanoe v2.17 or later which supports pmtiles output. what you're creating in the above is a sqlite (mbtiles) database. |
Beta Was this translation helpful? Give feedback.
You need to use tippecanoe v2.17 or later which supports pmtiles output. what you're creating in the above is a sqlite (mbtiles) database.
https://github.com/felt/tippecanoe