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

example: Interactive WidgetLayer #214

Merged
merged 7 commits into from
Feb 13, 2025

Conversation

pamtbaau
Copy link
Contributor

@pamtbaau pamtbaau commented Feb 3, 2025

This PR adds a new example showing the newly added interactivity option on WidgetLayer. This PR builds upon PR #213 which add interactivity to widgets in the WidgetLayer.

Example allows user to:

  • Long tap map: Add marker.
  • Tap marker: Show dialog.
  • Long tap marker: Show popup menu.
  • Tap+drag marker: Move marker around. When drag ends, user is asked to accept/discard the move.

Copy link

codecov bot commented Feb 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 40.77%. Comparing base (9a43395) to head (6afc499).
Report is 1 commits behind head on main.

@josxha josxha added this to the v0.2.1 milestone Feb 13, 2025
because the marker / widget gets placed above the pointer while dragging, the map camera moves around on web. Manually disabling the panning fixes this problem.
@josxha
Copy link
Owner

josxha commented Feb 13, 2025

Thanks @pamtbaau!
I added some small changes to this pr and #213 to bridge the gap between android and web and make it work on web, too. 👍

@josxha josxha changed the title Interactive widgetlayer example example: Interactive WidgetLayer Feb 13, 2025
@josxha josxha merged commit abbab6f into josxha:main Feb 13, 2025
16 of 18 checks passed
@pamtbaau
Copy link
Contributor Author

Thanks for reviewing, fixing, improving and merging my PR :-)

@pamtbaau pamtbaau deleted the interactive-widgetlayer-example branch February 14, 2025 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants