maplibre/martin

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

オープン

#1,829 opened on 2025/05/14

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)Rust (377 件のフォーク)auto 404
confighelp wantedrustspritesstyle

Repository metrics

Stars
 (3,761 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド