digidem / mapeo-map-server

Offline map style and tile server
MIT License
5 stars 2 forks source link

Add endpoint to serve legacy offline Mapeo maps #71

Open achou11 opened 2 years ago

achou11 commented 2 years ago

In order to support serving offline maps for maps that exist on disk, we should port over mapeo-server's implementation for serving offlien maps. Each map should be namespaced by some id and contain the following assets structure:

MAP_ID/
  style.json
  fonts/
  sprites/
  tiles/

the tiles/ directory may contain an .asar or a directory with x/, y/, and z/

Implementation details:

rudokemper commented 1 year ago

Hello! Would like to inquire if with this approach in mapeo-map-server it will be possible to load maps with the abovementioned asset structure, but instead of loading tiles from an asar-compressed XYZ dir, mbtiles may be used instead? (As a way to load multiple mbtile sources in Mapeo.)

achou11 commented 9 months ago

Hello! Would like to inquire if with this approach in mapeo-map-server it will be possible to load maps with the abovementioned asset structure, but instead of loading tiles from an asar-compressed XYZ dir, mbtiles may be used instead? (As a way to load multiple mbtile sources in Mapeo.)

apologies for the delayed reply, but yeah i think this would be useful. for now, currently working on porting the asar-specific implementation over and would consider adding mbtiles support as a follow up.