maplibre/martin

Add sprites and styles per directory and recursively from one root directory

Ouverte

#1 829 ouverte le 14 mai 2025

 (2 commentaires) (0 réaction) (0 personne assignée)Rust (377 forks)auto 404
confighelp wantedrustspritesstyle

Métriques du dépôt

Stars
 (3 761 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

I have about 20 projects and the number of projects is increasing, all using their own sprites. I need to configure one extra line for every new project's sprites. I know Martin can already search recursively, but when I do that all projects can access each other's sprites, because they are all included in one big sprite, which beside takes a lot of time to create. Would it be possible to add an option to recursively search the given sprite root directory (eg.: /usr/share/projects/sprites) and then for every first level directory found add the svg files to the sprite with the name of that directory.

Example directory structure in which /usr/share/projects/sprites/ is the root folder entered in Martin's config.yaml file and the highlighted directory will be cataloged and published as a sprite. /usr/share/projects/sprites/project1/icon1.svg /usr/share/projects/sprites/project1/icon2.svg /usr/share/projects/sprites/project2/icon1.svg /usr/share/projects/sprites/project2/icon2.svg /usr/share/projects/sprites/project3/icon1.svg /usr/share/projects/sprites/project3/icon2.svg

The same functionality would be nice to have for styles.

Guide contributeur