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.

贡献者指南