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

Vector style service #932

Merged
merged 13 commits into from
Mar 13, 2023
Merged

Conversation

okauppinen
Copy link
Contributor

@okauppinen okauppinen commented Mar 9, 2023

  • create table for vector styles
  • add instance default vector style
  • migrate styles from wfs, vectortile and tiles3d options to new table
  • add service, service impl and mapper

Migrate style consistency:
https://github.com/oskariorg/oskari-frontend/blob/master/bundles/mapping/mapmodule/domain/VectorStyle.js#L49-L84

Instance default style (wrapped inside featureStyle) from:
https://github.com/oskariorg/oskari-server/blob/master/service-base/src/main/java/fi/nls/oskari/domain/map/wfs/WFSLayerOptions.java#L137-L172

style column content:

  • oskari: {featureStyle: {}, optionalStyles: []}
  • external: { ..external style definitions.. }

UPDATED:

  • layer -> layer_id and column type nullable integer (instance default style)
  • creator nullable (admin styles)
  • foreign key constraint for creator and layer_id -> on delete cascade

@okauppinen okauppinen marked this pull request as ready for review March 13, 2023 08:10
@ZakarFin ZakarFin changed the base branch from develop to wfs-styles March 13, 2023 09:40
@ZakarFin ZakarFin added this to the 2.11.0 milestone Mar 13, 2023
@ZakarFin ZakarFin merged commit a475d0f into oskariorg:wfs-styles Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants