In demo app, route tab, add a way to grab and drag any turning point along a displayed route
@mraross ci sta già lavorando.
Dal 12/5/2021.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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).
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 7
- Fork
- 6
- Merge medio
- 12g 20h
- PR unite (30g)
- 1
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di bcgov/ols-devkit
-
It's Been a While Since This Repository has Been UpdatedForse di nuovo libera @cmhodgson l’ha presa 1182 giorni fa e non c’è nessuna pull request aperta. Aperta
bcgov/ols-devkit#217 · 2 assegnatari ·
-
address list editor
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
bcgov/ols-devkit#203 ·
-
enhancement location services demo app
Difficoltà 2/5 1-3 ore Idoneità per principianti 25/100
bcgov/ols-devkit#200 ·
-
In location services in action, add a Basemap Comparison tabForse di nuovo libera @mraross l’ha presa 1978 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement
bcgov/ols-devkit#195 · 1 assegnatario ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
bcgov/ols-devkit#187 ·