In demo app, route tab, add a way to grab and drag any turning point along a displayed route
@mraross đang làm issue này rồi.
Từ ngày 12/5/2021.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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).
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 7
- Fork
- 6
- Merge trung bình
- 12 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của bcgov/ols-devkit
-
It's Been a While Since This Repository has Been UpdatedCó thể làm lại được @cmhodgson đã nhận 1183 ngày trước và không có pull request nào đang mở. Đang mở
bcgov/ols-devkit#217 · 2 người được giao ·
-
address list editor
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
bcgov/ols-devkit#203 ·
-
enhancement location services demo app
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 25/100
bcgov/ols-devkit#200 ·
-
In location services in action, add a Basemap Comparison tabCó thể làm lại được @mraross đã nhận 1979 ngày trước và không có pull request nào đang mở. Đang mởenhancement
bcgov/ols-devkit#195 · 1 người được giao ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
bcgov/ols-devkit#187 ·