-
Notifications
You must be signed in to change notification settings - Fork 3
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
[FEAT][PoiMap][SC-43161] Show popup on feature click #186
[FEAT][PoiMap][SC-43161] Show popup on feature click #186
Conversation
70f6134
to
79fde96
Compare
cf41be0
to
465095f
Compare
@RafaelSzmarowski and @wmai Sorry, I didn't realize my latest rebase broke the commit history. Now this PR also only changes related to the popup 😉 |
e056b1b
to
7945831
Compare
78f2f2a
to
00979f4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really clean! The map and maprender implem look really nicer, easier to read and more stable.
There are just two little things I'd rather do without: the queue mechanism and the .bind(this)
. This are pattern I'm not sure everybody in the future will know. Moving to a Svelte component should solve that, while leveraging 99% of this code (this is for another PR).
The popup I feel like could be done as a mix of maplibre'spopup or HTML (especially if we want to support more "sidebar" stuff, like next to the map).
Anyways, these comments are a bit more far fetch and doesn't block merge imo. I'll approve if you want to leave it like this.
👍 |
c7d9d4b
to
80265d5
Compare
8a46de5
to
59ea8cf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ! Nice work
69303d9
to
6487c64
Compare
Before merge I'll do a squash to keep only two commits:
|
6487c64
to
712b410
Compare
Each layer has its own popup configuration
- @opendatasoft/[email protected] - @opendatasoft/[email protected]
712b410
to
ab8a82b
Compare
Summary
The goal for this PR is to show popup on the map after a feature has been clicked.
(Internal for Opendatasoft only) Associated Shortcut ticket: sc-43161.
Changes
Poi map can now display popup when a feature is clicked.
To do so, a popup config object must be defined in a layer.
The SDK provides only a skeleton (positioning and content container style) for the popup.
Popup content comes from the result of
getContent
.Also when interaction is switch off:
Breaking Changes
none
To be tested
Review checklist