mbtiles-server icon indicating copy to clipboard operation
mbtiles-server copied to clipboard

unable to process mbtiles from openmaptiles.org

Open medlemark opened this issue 7 years ago • 4 comments

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 ?

medlemark avatar Apr 02 '17 21:04 medlemark

Hi,

The 'openmaptiles' are vector tiles, so instead of 2.png, try 2.pbf.

nouryf avatar Apr 28 '17 15:04 nouryf

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

thomasbrueggemann avatar Jul 22 '17 21:07 thomasbrueggemann

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.

nouryf avatar Jul 23 '17 14:07 nouryf

Thanks for sharing - I was looking for a pbf version as well :)

thomasbrueggemann avatar Jul 23 '17 23:07 thomasbrueggemann