Skip to content

PB-414: marker overlapping title#806

Merged
LukasJoss merged 18 commits intodevelopfrom
feat-PB-414-marker-overlapping-title
May 3, 2024
Merged

PB-414: marker overlapping title#806
LukasJoss merged 18 commits intodevelopfrom
feat-PB-414-marker-overlapping-title

Conversation

@LukasJoss
Copy link
Contributor

@LukasJoss LukasJoss commented Apr 25, 2024

@LukasJoss
Copy link
Contributor Author

LukasJoss commented Apr 25, 2024

Exaple kml:
https://sys-s.dev.bgdi.ch/mr7dwvf1zanw
https://sys-s.dev.bgdi.ch/9wyu8ahpjpzh
I have opted now for a fixed offset because kml does not support text offsets (since a fixed offset does not make much sense in 3d space) similar to how it seems to be implemented on google earth (but 2d)

@cypress
Copy link

cypress bot commented Apr 25, 2024

Passing run #2018 ↗︎

0 160 20 0 Flakiness 0

Details:

PB-414: Add end to end test to check kml title offset
Project: web-mapviewer Commit: 0bdc6b973d
Status: Passed Duration: 04:30 💡
Started: May 2, 2024 12:47 PM Ended: May 2, 2024 12:52 PM

Review all test suite changes for PR #806 ↗︎

@LukasJoss LukasJoss force-pushed the feat-PB-414-marker-overlapping-title branch 5 times, most recently from d3f033c to 278ebf5 Compare April 29, 2024 12:00
@LukasJoss LukasJoss requested review from ltkum, ltshb and pakb April 29, 2024 12:10
@LukasJoss LukasJoss marked this pull request as ready for review April 29, 2024 12:35
Copy link
Contributor

@ltshb ltshb left a comment

Choose a reason for hiding this comment

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

Personally I prefer the text to be below the marker, especially for the position marker having the text below is more intuitive.

@LukasJoss
Copy link
Contributor Author

Personally I prefer the text to be below the marker, especially for the position marker having the text below is more intuitive.

We can discuss that tomorrow, maybe somebody else has a strong opinion about it.

@ltshb ltshb changed the title Feat pb 414 marker overlapping title PB-414: marker overlapping title Apr 30, 2024
@LukasJoss LukasJoss force-pushed the feat-PB-414-marker-overlapping-title branch 2 times, most recently from 8e991fa to db45ad0 Compare April 30, 2024 13:33
@LukasJoss LukasJoss requested a review from ltshb April 30, 2024 13:44
@LukasJoss LukasJoss force-pushed the feat-PB-414-marker-overlapping-title branch from 357dcb2 to 4c44e28 Compare May 1, 2024 06:52
@LukasJoss
Copy link
Contributor Author

LukasJoss commented May 1, 2024

@ltshb currently when exporting and then reimporting a kml file, there will be no offset since it is considered to be a legacy layer as there is no metedata when importing it from a file

isLegacy() {
return this.kmlMetadata?.author !== 'web-mapviewer'
}
should there some metadata be added in the kml file itself that we produce so we can detect that?
we could also detect that it fetches the icons from map.geo.admin instead of api3.geo.admin

@LukasJoss LukasJoss requested a review from ltshb May 1, 2024 07:29
Copy link
Contributor

@pakb pakb left a comment

Choose a reason for hiding this comment

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

Looking good, thanks!

@LukasJoss LukasJoss force-pushed the feat-PB-414-marker-overlapping-title branch 5 times, most recently from 9e7f847 to d2f211d Compare May 1, 2024 12:50
Copy link
Contributor

@ltshb ltshb left a comment

Choose a reason for hiding this comment

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

Looks very thanks a lot.
Now that the offset is in KML it might make sense to test the presence/absence of the offset in KML in e2e test, this should be easily done ?

@LukasJoss LukasJoss force-pushed the feat-PB-414-marker-overlapping-title branch from d2f211d to 0bdc6b9 Compare May 2, 2024 12:43
@LukasJoss
Copy link
Contributor Author

LukasJoss commented May 2, 2024

Looks very thanks a lot. Now that the offset is in KML it might make sense to test the presence/absence of the offset in KML in e2e test, this should be easily done ?

I assume it suffices to test the parsing from kml to feature and not the one from feature to kml
https://github.com/geoadmin/web-mapviewer/blob/0bdc6b973db7c5000743c14e7b9d24a2c520bdf0/src/utils/tests/kmlUtils.spec.js#L121-L145

@LukasJoss LukasJoss merged commit 5ca36a3 into develop May 3, 2024
@LukasJoss LukasJoss deleted the feat-PB-414-marker-overlapping-title branch May 3, 2024 07:19
@cypress cypress bot mentioned this pull request May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants