Enhancement for Polyline::onTap
@LuisThein is already working on this.
Since Mar 27, 2022.
Assessment
This issue has not been assessed yet.
Description
Is your feature request related to a problem? Please describe.
I use polylines to circumscribe a region (defined by markers) and when a user click on a Polyline I want to add a marker where they tap and insert the marker into my marker list. Currently, when a user taps on the Polyline, I have no way of telling where they selected. This requires me to calculate the midpoint and drop the marker there. The user then has to drag the marker to the final destination which is annoying for the user.
Describe the solution you'd like
I would like the Polyline onTap method to pass the the Polyline selected and the position on the map they tapped
eg. line.onTap = process(Polyline polyline, LatLng position) => do stuff
Providing the Polyline (that was tapped) allows generic functions to be used (not required, but nice to have)
Providing the position allows an application to reason about where on the line the tap occurs. In may case, the position to drop the marker
Describe alternatives you've considered
Currently calculate the midpoint of the Polyline. This is annoying for the user as they have to reposition the marker
- Dominant language
- Dart
- Stars
- 83
- Forks
- 72
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fluttercommunity/platform_maps_flutter
-
implement dispose controller functionMay be free again @LuisThein claimed this 781 days ago, and no pull request is open. Openenhancement
fluttercommunity/platform_maps_flutter#71 · 1 assignee ·
-
Migrate to a Federated PluginMay be free again @renefloor claimed this 954 days ago, and no pull request is open. Openenhancement
fluttercommunity/platform_maps_flutter#65 · 1 comment · 1 reaction · 1 assignee ·
-
onTap callback is not called when no InfoWindow is declared and a first tapped has already occuredMay be free again @LuisThein claimed this 1062 days ago, and no pull request is open. Openbug
fluttercommunity/platform_maps_flutter#62 · 1 reaction · 1 assignee ·
-
MinMaxZoomPreference minZoom value is incorretMay be free again @LuisThein claimed this 1067 days ago, and no pull request is open. Openbug
fluttercommunity/platform_maps_flutter#61 · 1 assignee ·
-
add cloudMapId (google map) for platform_maps_flutterMay be free again @LuisThein claimed this 1084 days ago, and no pull request is open. Openenhancement
fluttercommunity/platform_maps_flutter#60 · 2 comments · 1 assignee ·
All issues in fluttercommunity/platform_maps_flutter
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
linagora/twake-on-matrix#3435 ·
Maintainers usually reply within 3 days
-
右下角的图标问题Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
[Domain Activation] Show a user-friendly error when sending is blocked pending domain activationOpen
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
linagora/tmail-flutter#4953 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
genkit-ai/genkit-dart#587 ·
Maintainers usually reply within 1 day