Skip to content
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

Admin-layereditor json fields POC #2438

Merged
merged 7 commits into from
Jan 11, 2024

Conversation

okauppinen
Copy link
Contributor

Add tab for JSON fields (options, capabilities, attributes, params). Every json have text area to review content. Tools for adding key value pairs to json and deleting key from json. Value is parsed so also Object or Array can be added. So everything but whole json should be added or deleted.

image

image

image

These could be removed:
image
'Show GetCapabilities response' opens xml to new tab so it's little dummy to change tab to compare xml and json
If attributes is removed, setting extra values inside data (e.g. noDataValue) might need ui component. or other solution

Also tempJSON handling can be removed from handler. BTW: not sure why there is so many setters. I often use common(key, value) setter instead of many named(value).

I think that named keys in WFSLayerOptions.java and WFSLayerAttributes.java could have own inputs in layereditor
maxFeatures, namespaceURL, noDataValue, commonId
labelProperty -> StyleEditor text tab?

@ZakarFin
Copy link
Member

ZakarFin commented Oct 6, 2023

Looks good to me.

@okauppinen okauppinen marked this pull request as ready for review January 11, 2024 11:59
@@ -113,6 +117,12 @@ Oskari.registerLocalization(
"globalWithStyles": "Tasolle on määritetty vain yksi yleinen oletuskarttaselite, vaikka sillä olisi rajapintapalvelusta useita tyylejä käytettävissä. Poista oletuskarttaselite ja määritä mahdolliset tyylikohtaiset karttaselitteet."
}
},
"jsonFields": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have these translations for swedish?

@ZakarFin ZakarFin added this to the 2.13.0 milestone Jan 11, 2024
@ZakarFin ZakarFin merged commit 3740ae9 into oskariorg:develop Jan 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants