-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
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
Custom markers #407
Comments
Hi, createMarker: function(i, wp, nWps) {
if (i === 0 || i === nWps - 1) {
return L.marker(wp.latLng, {icon: myStartOrEndIcon });
} else {
return L.marker(wp.latLng, {icon: myViaIcon });
}
} |
Thank you! |
Can you please show me where are you using this custom option? Can't find it here http://www.liedman.net/leaflet-routing-machine/api/ I'm trying this way Thanks |
@Khorda it's an From the code you pasted, it looks like you're passing it to the waypoint constructor, and that will not work. |
Can i start the waypoint at i = 1? |
Hi,
if(!layer){debugger;
|
Yes ,I know,this questions was answered once,but mine is a little different..
So I want to custom markers to the first and last waypoint just,the viapoints markers to be by default..
How can I do this?
Thank you
The text was updated successfully, but these errors were encountered: