How do I change the marker of Mapbox with directionsjs? It shows A and B markers [duplicate]
- 阅读更多 关于 How do I change the marker of Mapbox with directionsjs? It shows A and B markers [duplicate]
问题 This question already has answers here : Mapbox Driving Direction with Custom Marker (2 answers) Closed 3 years ago . How do I change the Mapbox marker (when using directionjs)? It shows A and B markers. I tried editing the marker but lose directions. var x= L.marker([51.508245, -0.087700], { icon: L.mapbox.marker.icon({ 'marker-size': 'large', 'marker-icon': 'monument', 'marker-color': '#fa0' }) }).addTo(map); // Set the origin and destination for the direction and call the routing service