mapbox / mapbox-directions.js

Leaflet plugin for the Mapbox Directions API
https://www.mapbox.com/mapbox.js/example/v1.0.0/mapbox-directions/
ISC License
60 stars 23 forks source link

Origin and destination markers A, B #98

Open mahmoudkm opened 8 years ago

mahmoudkm commented 8 years ago

I've placed new map markers representing point A (origin) and point B (destination) with more app related icons inside my app, but can't figure out how I can remove point A, point B markers from my map or change their icons / color of marker A and B.

So is there any way I can remove point A, B markers or change their color / icons? Thanks

wyattp11 commented 7 years ago

Yes, you need to modify mapbox.directions.js - search for the markers(you can use their color hex#, size string etc), then you can delete the entire icon object so it doesn't produce A/B icons, just yours will show.