mpetazzoni/leaflet-gpx — pull request #10 by byterror (2013-09-18 09:25:42+00:00)
Title: Possibility to disable the start and end icon

I needed the possibility to disable the end icon of a gpx file. This can be useful if the start and the end of the gpx file are the same. Also it would be nice to disable also the start icon if not needed.

With the change, you can overwrite the startIconUrl and endIconUrl with null, so no marker is shown:

marker_options: {
startIconUrl: null,
endIconUrl: null,
}

I added only an if statement around the marker code.

It would be cool, if you can merge the change.