maplibre/martin

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

開放

#1,829 建立於 2025年5月14日

 (2 則留言) (0 個反應) (0 位負責人)Rust (377 個分叉)auto 404
confighelp wantedrustspritesstyle

倉庫指標

星標
 (3,761 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南