mod_mbtiles icon indicating copy to clipboard operation
mod_mbtiles copied to clipboard

Is this supposed to handle metadata?

Open SomeoneElseOSM opened this issue 2 years ago • 1 comments

I'm trying to use "mod_mbtiles " to replace Tilemaker's example ruby server at https://github.com/systemed/tilemaker/blob/master/server/server.rb .

Most things are straightforward ("mod_mbtiles" serves tiles from a tilemaker-generated .mbtiles file without issues), with one caveat: https://github.com/systemed/tilemaker/blob/master/server/static/index.html includes code that does a fetch on "/metadata", and server.rb handles that internally via https://github.com/systemed/tilemaker/blob/master/server/server.rb#L74 .

Is mod_mbtiles supposed to server a metadata file from some URL below the URL set in the Apache virtualhost config after "MbtilesAdd"? I've tried various likely URLs without success. What does work is manually creating that file on disk, but this seems unlikely to be correct since the data is obviously in the .mbtiles file.

SomeoneElseOSM avatar Sep 20 '23 23:09 SomeoneElseOSM

No - the /metadata call is just something that the Ruby server provides as a convenience for the web client to automatically zoom to the right level; it's not something that mod_mbtiles provides. That said, it wouldn't be a bad thing to add!

systemed avatar Sep 21 '23 06:09 systemed