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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…