-
-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add dropdown to change the type of a layer #738
Comments
@doskabouter thanks for bringing this up. Currently it's possible to change the type of a layer using the JSON Editor: The different layer types are having different properties, so depending on the properties used it could be that switching a layer type leads to a bunch of errors. I think there is no dropdown for historic reasons because in the past we didn't have a way to have a partially invalid style. But now it should be possible to add the dropdown for layer type. I would find this useful especially for cases where you've just added a layer and selected the wrong type in the |
Thanks for the response, changing it in the json is ofcourse a possibiity. |
@doskabouter ohh, you're right. It was available in @orangemug was this removed intentional? |
As it does make sense to be able to change the layer type it would be nice if it could be re-introduced. I used to use this feature too in one of the previous versions and our users are really confused about it being missing since they like to use Maputnik because it provides a UI instead of having to write JSON code. |
Changing a type makes some (most??) of the properties of the previous layer type invalid. For example changing from a @chau-intl what does the user expect the app to do in this situation? Also @chau-intl if you have time can you comment in #164 and tell us what you're up to with Maputnik? |
Maybe keep the common properties and use default values according to the style spec for the others? |
@orangemug, well changing the type of course implies that a lot of settings might become irrelevant and I guess the user is okay with them being reset. I think what @pathmapper suggests above would be the expected result. |
@chau-intl yeah true I guess we do have an undo stack as well so they can always revert the change. Yeah I'm happy with that as an approach. |
Maputnik version 1.7.0
Latest firefox on windows
Click to select any layer, there's no dropdown anymore next to the "type" field of the layer
The text was updated successfully, but these errors were encountered: