maplibre/martin
Support for merging styles into one, similar to sources
Open
#1,928 opened on Jul 17, 2025
help wantedserving
Repository metrics
- Stars
- (3,761 stars)
- PR merge metrics
- (PR metrics pending)
Description
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