Skip to content

Sprite previewing via dropdowns #1294

@CommanderStorm

Description

@CommanderStorm

Currently, for selecting a sprite, one has to know the sprites' id.
This is suboptimal as we don't tell users what the options are.

A similar tool, Martin, recently implemented a visual sprite catalog for its dashboard (see maplibre/martin#1956 for inspiration). A similar feature in Maputnik would greatly improve the user experience.

Now, obviously the design language for mapuntk is different - the dialog would not work.
I think if we design it like the following, it could work:

Image

For implementation, this needs to handle:

  • Sprites in maplibre can be either sdf or plain.
    Maputnik does not get to choose between these two and render sdf's via the tinysdf-package correctly.
  • sprites can be expressions. We should likely not have a dropdown here.
    Image

I currently don't have the engineering time for this, but might in the future. If someone beats me, feel free ^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions