maplibre/martin

Support for merging styles into one, similar to sources

Offen

#1.928 geöffnet am 17.07.2025

 (0 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Rust (377 Forks)auto 404
help wantedserving

Repository-Metriken

Stars
 (3.761 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

It is currently possible to merge multiple tile sources (composite sources), e.g. /{source1},…,{sourceN}/{z}/{x}/{y}. We need to allow the same thing for styles:

/style/{style1},…,{styleN}

When merging:

  • combine the list of styling rules in the order provided by the user
  • combine the list of sources into a single list, de-duplicating them
    • TODO: in case a of a duplicate URL, but different data source name, we may need to update the style to use the new source name
  • consider merging tile sources into a single composite source request
  • combine fonts and sprites

Contributor Guide