systemed / mod_mbtiles

Serve tiles with Apache directly from an .mbtiles file
19 stars 2 forks source link

Is this supposed to handle metadata? #2

Open SomeoneElseOSM opened 1 year ago

SomeoneElseOSM commented 1 year ago

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.

systemed commented 1 year ago

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!