Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
434 views
in Technique[技术] by (71.8m points)

reactjs - Mapbox-gl-directions API One Way instead of Origin and Destination

I'm using mapbox-gl-directions API to solve routes.

For my purposes, I only care to set the Destination because the origin is always fix place in my case(Rue Hunter, Lachine, Quebec H3J 1R9, Canada).

So i want to disable/hide only origin input not the destination.

I have used setOrigin method but user should not be able to input the origin at all.

Check this link: Origin is set,fixed

The destination can be whatever is best choice of user.

Thanks.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...