Use custom markers for start and end
This commit is contained in:
parent
4282e98551
commit
a23634e1c4
3 changed files with 5 additions and 7 deletions
|
|
@ -8,11 +8,9 @@ BR.Routing = L.Routing.extend({
|
|||
options: {
|
||||
position: 'topright',
|
||||
icons: {
|
||||
/* not implemented yet
|
||||
start: new L.Icon.Default({iconUrl: 'bower_components/leaflet-gpx/pin-icon-start.png'}),
|
||||
end: new L.Icon.Default(),
|
||||
normal: new L.Icon.Default()
|
||||
*/
|
||||
start: L.AwesomeMarkers.icon({ icon: 'play', markerColor: 'green' }),
|
||||
normal: L.AwesomeMarkers.icon({ icon: 'circle', markerColor: 'blue' }),
|
||||
end: L.AwesomeMarkers.icon({ icon: 'stop', markerColor: 'red' }),
|
||||
draw: false,
|
||||
opacity: 1
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue