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

Add output filename to `name` in mbtiles metadata #35

Closed rudokemper closed 9 months ago

rudokemper commented 9 months ago

While using this tool to create an offline map for a partner, I discovered that the name row in the metadata table of the mbtiles file is what is used by Mapeo to provide a name for the background map. This was just set to the source of the tiles (e.g. bing, mapbox) which is not super descriptive and will get confusing if multiple maps are added with the same source. So this is a quick change to include the output filename in the name in a format {outputFilename} - {sourceName} (e.g. "Oelemarie River - Bing Maps Satellite")