Enhancement for Polyline::onTap
@LuisThein 已经在做这个了。
开始于 2022年3月27日。
评估
这个 Issue 还没有评估数据。
描述
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
- 主要语言
- Dart
- 星标
- 83
- 派生
- 72
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
fluttercommunity/platform_maps_flutter 的其他 Issue
-
implement dispose controller function可能重新可做 @LuisThein 于 793 天前认领,目前没有进行中的 PR。 未关闭enhancement
fluttercommunity/platform_maps_flutter#71 · 已指派 1 人 ·
-
Migrate to a Federated Plugin可能重新可做 @renefloor 于 967 天前认领,目前没有进行中的 PR。 未关闭enhancement
fluttercommunity/platform_maps_flutter#65 · 1 条评论 · 1 个 reaction · 已指派 1 人 ·
-
onTap callback is not called when no InfoWindow is declared and a first tapped has already occured可能重新可做 @LuisThein 于 1074 天前认领,目前没有进行中的 PR。 未关闭bug
fluttercommunity/platform_maps_flutter#62 · 1 个 reaction · 已指派 1 人 ·
-
MinMaxZoomPreference minZoom value is incorret可能重新可做 @LuisThein 于 1079 天前认领,目前没有进行中的 PR。 未关闭bug
fluttercommunity/platform_maps_flutter#61 · 已指派 1 人 ·
-
add cloudMapId (google map) for platform_maps_flutter可能重新可做 @LuisThein 于 1097 天前认领,目前没有进行中的 PR。 未关闭enhancement
fluttercommunity/platform_maps_flutter#60 · 2 条评论 · 已指派 1 人 ·
查看 fluttercommunity/platform_maps_flutter 的全部 Issue
相似的 Issue
-
area: ui feature priority: medium
难度 1/5 1 小时以内 新手友好度 90/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 63/100
AimesSoft/NipaPlay-Reload#1022 ·
维护者通常 1 天内回复
-
`jwtPayload.roomConfiguration` returns null fields for tokens from LiveKit server SDKs可能已有人在做 @RaphaelFakhri 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
livekit/client-sdk-flutter#1243 ·
维护者通常 1 天内回复
-
bug to check
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
zjs81/meshcore-open#602 · 3 条评论 ·
维护者通常 1 天内回复