We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have draw root line direction using GL-mapbox. then after i have remove this root line on button click. What i to do.? ==JS Function==
mapboxgl.accessToken = 'pk.eyJ1IjoiYWNoYWxwcmFqYXBhdGkiLCJhIjoiY2lyNGkwZGsxMDFpenUybHd5bjRtMjVjeiJ9.2teTa5MmVqOW-MDpryv56w';
var map = new mapboxgl.Map({ //hash: true, container: 'map', style: 'mapbox://styles/achalprajapati/cis1byfch0008hgnitiwbym9c', center: [-117.1425, 32.63638889], zoom: 6 }); var directions = new mapboxgl.Directions({ unit: 'metric', profile: 'driving', container: 'directions', proximity: [-117.3186111, 33.10388889] }); directions.setOrigin([-117.1425, 32.63638889]); directions.addWaypoint(0, [-117.1425, 32.63638889]); directions.addWaypoint(1, [-117.195, 32.75416667]); directions.addWaypoint(2, [-116.5616667, 32.93583333]); directions.setDestination([-116.5616667, 32.93583333]); map.addControl(directions);
The text was updated successfully, but these errors were encountered:
Hi @achalnexus - a new method removeRoutes will become available in version 3.0.0, which is near completion in #98
removeRoutes
3.0.0
Sorry, something went wrong.
@achalnexus version 3.x is now out, which includes the removeRoutes method for removing the direction style from your map. Please give this a try!
3.x
If I've misunderstood your question, feel free to re-open.
No branches or pull requests
I have draw root line direction using GL-mapbox.
then after i have remove this root line on button click.
What i to do.?
==JS Function==
mapboxgl.accessToken = 'pk.eyJ1IjoiYWNoYWxwcmFqYXBhdGkiLCJhIjoiY2lyNGkwZGsxMDFpenUybHd5bjRtMjVjeiJ9.2teTa5MmVqOW-MDpryv56w';
The text was updated successfully, but these errors were encountered: