maputnik icon indicating copy to clipboard operation
maputnik copied to clipboard

No details for error

Open zstadler opened this issue 10 months ago • 2 comments

Maputnik version: v2.1.1 Browser: Firefox OS: Windows

Description of the bug: If one creates a new layer, and accidentally uses a name of an existing layer, the name of the new layer will be colored in red, but no other explanation of the error is given.

Steps to reproduce the behavior:

  1. Open the "Toner" style
  2. Add layer name "waterway". For example: Image
  3. The name of the new layer is red, and that's it

Screenshots:

Image

zstadler avatar Feb 21 '25 16:02 zstadler

@louwers ,

Thanks for fixing this issue by preventing the creation of a new layer with an existing name.

The same unexplained error can also happen when an existing layer is renamed to a name of another layer.

This can be done by editing the layer's ID field. For example, renaming the "water" layer to "waterway"

Image

or by editing the layer's JSON definition

Image

Is it possible to address these scenarios too?

zstadler avatar Jul 05 '25 10:07 zstadler

When editing a layer and it already exists you'll get the following screen, which I think is a good enough notification to the user that there's a problem in the layer name:

Image

The below error message panel was previously missing, also the ID label turns red, which I think is also a good enough indicator...

HarelM avatar Nov 06 '25 11:11 HarelM