ConservationMetrics / mapgl-tile-renderer

Headless Node.js Maplibre-GL renderer for generating MBTiles with styled raster tiles.
MIT License
12 stars 3 forks source link

Support exporting to CoMapeo styled map package (`.smp`) format #62

Open rudokemper opened 3 weeks ago

rudokemper commented 3 weeks ago

Feature Request

For offline maps, CoMapeo will start to use Styled Map Package (.smp) files where are Zip archives containing all the resources needed to serve a MapGL map offline. This includes the style JSON, vector and raster tiles, glyphs (fonts), the sprite image, and the sprite metadata.

This tool only generates raster tiles, but we can add an option to export to the .smp format in addition to MBTiles. This will require:

  1. outputting the tiles as s/0/{z}/{x}/{y}.jpg
  2. generating a style.json file which draws a raster source on the MapGL canvas.
  3. zipping the output directory with .smp extension.
rudokemper commented 3 weeks ago

Once this work is done here, I will file an issue on map-packer to support submitting an offline map request as SMP in addition to MBTiles.