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

feat!: add interactive Polygons, rework Polyline hitTest result, and deprecate/disable auto application of TransulcentPointer #1822

Merged
merged 5 commits into from
Feb 14, 2024

Conversation

JaffaKetchup
Copy link
Member

@JaffaKetchup JaffaKetchup commented Feb 10, 2024

Added interactive Polygons

Resolves #385. Requires #1800 to be merged first.
This uses a similar format as to Polyline interactivity.


Reworked PolylinePainter.hitTest outputs

Helps to fix #1740.

  • Hit testing is now performed even if there is no attached hitNotifier
  • Any attached notifier is now notified about a successful hit even if there were no hitValues
  • hitTest internal output no longer depends on state of hitNotifier, to improve definitity without below...

Deprecated MapOptions.applyPointerTranslucencyToLayers & changed default to false, and removed usage TransulcentPointer.translucent property

Fixes #1740.

  • This option caused unexpected behaviour in some cases, especially as it was enabled by default
  • [BUG] MapOptions.applyPointerTranslucencyToLayers causes Positioned wrappers to fail #1740 was caused because disabling it did not unwrap children, it just used the translucent property
  • TranslucentPointer itself has been retained as it is a useful resource to further customize hit testing behaviour, and CircleLayer and OverlayImageLayer still have no hit testing provision
  • Online documentation will be updated to explain new hit testing behaviour and rules

@josxha josxha added this to the v7.0 milestone Feb 10, 2024
@JaffaKetchup JaffaKetchup marked this pull request as ready for review February 10, 2024 16:50
@mohammedX6

This comment was marked as outdated.

Improved example application to showcase Polygon interactivity
@JaffaKetchup JaffaKetchup reopened this Feb 13, 2024
Minor performance improvements
@JaffaKetchup

This comment was marked as outdated.

Removed auto application of `TransulcentPointer`, deprecated respective option, and fixed bug
Minor performance improvement
Minor documentation improvement
@JaffaKetchup JaffaKetchup changed the title feat: add interactive Polygons feat!: add interactive Polygons, rework Polyline hitTest result, and deprecate/disable auto application of TransulcentPointer Feb 13, 2024
Copy link
Contributor

@josxha josxha left a comment

Choose a reason for hiding this comment

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

Haven't tested yet. Changes look straight forward, only found one thing.

lib/src/map/widget.dart Outdated Show resolved Hide resolved
Copy link
Contributor

@josxha josxha left a comment

Choose a reason for hiding this comment

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

lgtm 👍

@JaffaKetchup JaffaKetchup merged commit 45cd08c into master Feb 14, 2024
8 checks passed
@JaffaKetchup JaffaKetchup deleted the interactive-polygons branch February 14, 2024 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
3 participants