In demo app, route tab, add a way to grab and drag any turning point along a displayed route
@mraross 已经在做这个了。
开始于 2021年5月12日。
评估
这个 Issue 还没有评估数据。
描述
Map apps such as google maps let you dynamically reroute a route at any turn. Such an app makes a temporary waypoint out of every intersection on the route where a turn is made. You can grab one of these waypoints and move it where you want it, then the app reroutes accordingly. Except for making and displaying temporary waypoints at every turn, our demo app works the same way, allowing you to drag any waypoints you have defined.
The directions resource of the router actually returns a starting point for every leg of directions. You just have to filter out any points associated with a leg that continues instead of turns then make and display the needed temporary waypoints for your users to drag. When a user grabs a turning point that isn't a user-defined waypoint, you add that point to the list of waypoints in the correct position in the sequence (e.g., after the appropriate user-defined waypoint), submit a route request, and display the resulting route. This may seem hard to do in real-time but keep in mind the user can only select and drag one turning point at time.
Here is an example directions request so you can see where to find the leg points:
This feature was requested by the Height Clearance Tool team at Ministry of Transportation and Infrastructure (Jean Bishop).
- 主要语言
- 没有语言数据
- 星标
- 7
- 派生
- 6
- 平均合并
- 12 天 20 小时
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
bcgov/ols-devkit 的其他 Issue
-
It's Been a While Since This Repository has Been Updated可能重新可做 @cmhodgson 于 1183 天前认领,目前没有进行中的 PR。 未关闭
bcgov/ols-devkit#217 · 已指派 2 人 ·
-
address list editor
难度 3/5 1-2 天 新手友好度 35/100
bcgov/ols-devkit#203 ·
-
enhancement location services demo app
难度 2/5 1-3 小时 新手友好度 25/100
bcgov/ols-devkit#200 ·
-
In location services in action, add a Basemap Comparison tab可能重新可做 @mraross 于 1979 天前认领,目前没有进行中的 PR。 未关闭enhancement
bcgov/ols-devkit#195 · 已指派 1 人 ·
-
难度 4/5 3-5 天 新手友好度 45/100
bcgov/ols-devkit#187 ·