mbtiles-server
mbtiles-server copied to clipboard
unable to process mbtiles from openmaptiles.org
i used *.mbtiles downloaded from https://openmaptiles.org but without luck and i tried accessing the tiles by Visiting http://localhost:3000/3/1/2.png it shows error and i have question ,can i use it for rendering leafletjs map offline ?
Hi,
The 'openmaptiles' are vector tiles, so instead of 2.png, try 2.pbf.
That cannot work, from looking at the code the extension if hardcoded in a switch/case statement and pbf
is not one of the cases...
https://github.com/chelm/mbtiles-server/blob/master/server.js#L21
Sorry. Yes you're correct @thomasbrueggemann. Try instead this fork that support pbf: https://github.com/tobinbradley/mbtiles-server
The script file is named index.js and it does support pbf.
Thanks for sharing - I was looking for a pbf version as well :)