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

GSLUX-733: Symbols #147

Merged
merged 7 commits into from
Sep 9, 2024
Merged

GSLUX-733: Symbols #147

merged 7 commits into from
Sep 9, 2024

Conversation

AlitaBernachot
Copy link
Contributor

@AlitaBernachot AlitaBernachot commented Sep 3, 2024

JIRA issue

https://jira.camptocamp.com/browse/GSLUX-733

Description

Implement symbol edition for Point (UI only).

image image

Copy link
Contributor

github-actions bot commented Sep 3, 2024

GitHub Pages links: * Luxembourg-geoportail: https://geoportail-luxembourg.github.io/luxembourg-geoportail/GSLUX-733-point-symbole/

@AlitaBernachot AlitaBernachot force-pushed the GSLUX-733-point-symbole branch 4 times, most recently from b81ed39 to 05af2bf Compare September 3, 2024 19:58
@AlitaBernachot AlitaBernachot marked this pull request as ready for review September 3, 2024 20:02
@AlitaBernachot AlitaBernachot force-pushed the GSLUX-733-point-symbole branch 2 times, most recently from 994ea61 to 5f96327 Compare September 4, 2024 10:05
Copy link
Contributor

@tkohr tkohr left a comment

Choose a reason for hiding this comment

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

Thanks @AlitaBernachot for this clean implementation!

Comment on lines +6 to +8
# Paths for symbols
VITE_SYMBOL_ICONS_URL="https://map.geoportail.lu/mymaps"
VITE_SYMBOLS_URL="https://map.geoportail.lu/mymaps/symbols"
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we rather use the migration URLs for dev and staging?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It would be better I agree but there are currently CORS issues when calling https://migration.geoportail.lu/mymaps/symbols in dev, should I change to migration anyway? (it can be bypassed using a chrome plugin but you have to be aware of that. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will merge as is for the demo, there is surely something to do with the url from migration/prod for the symbols, especially for the upload symbols functionality.

src/components/common/symbol/crossSymbol.vue Outdated Show resolved Hide resolved
src/components/draw/feature-edit-style-point.vue Outdated Show resolved Hide resolved
inject('currentEditCompKey')
// const feature: DrawFeature | undefined = inject('feature') // TODO:
const featureShape: FeatureShape = 'circle' // feature.olFeature.get('shape') // TODO: to plug when feature ok
const featureColor = 'red' // feature.olFeature.get('color') // TODO: to plug when feature ok
Copy link
Contributor

Choose a reason for hiding this comment

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

This will be part of the logical part anyway, but did I understand right, that the problem of using DrawnFeature.featureStyle.color here is, that it currently needs a DrawnFeature.changed() call for ol to update it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Exactly, we should improve Drawnfeature class to avoid calling ol functionalities in our components.

src/components/draw/feature-edit-style.vue Outdated Show resolved Hide resolved
@AlitaBernachot AlitaBernachot merged commit f4c2e1d into main Sep 9, 2024
2 checks passed
@AlitaBernachot AlitaBernachot deleted the GSLUX-733-point-symbole branch September 9, 2024 09:13
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.

2 participants