Use custom markers for start and end

This commit is contained in:
Gautier Pelloux-Prayer 2019-10-17 21:20:20 +02:00
parent 4282e98551
commit a23634e1c4
3 changed files with 5 additions and 7 deletions

View file

@ -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
},

View file

@ -48,9 +48,9 @@
"leaflet-easybutton": "*",
"leaflet-editable": "^1.1.0",
"leaflet-elevation": "nrenner/Leaflet.Elevation#dev",
"leaflet-hotline": "^0.4.0",
"leaflet-filelayer": "^1.2.0",
"leaflet-geometryutil": "^0.9.1",
"leaflet-hotline": "^0.4.0",
"leaflet-plugins": "~3.0.0",
"leaflet-providers": "^1.5.0",
"leaflet-routing": "nrenner/leaflet-routing#dev",

View file

@ -4477,7 +4477,7 @@ leaflet-providers@^1.5.0:
leaflet-routing@nrenner/leaflet-routing#dev:
version "0.1.1"
resolved "https://codeload.github.com/nrenner/leaflet-routing/tar.gz/bbe5df8af500948251337a7e6c09d14f9fad6d8d"
resolved "https://codeload.github.com/nrenner/leaflet-routing/tar.gz/84bb47a88d2b8366e9cdb46835e8620d2678d089"
leaflet-sidebar-v2@nrenner/leaflet-sidebar-v2#dev:
version "3.0.2"