Replace large awesome-markers with smaller vector-markers (#268)
This commit is contained in:
parent
c933a7a431
commit
502735cb8e
6 changed files with 121 additions and 22 deletions
|
|
@ -96,10 +96,11 @@ BR.PoiMarkers = L.Control.extend({
|
|||
return temp.innerHTML;
|
||||
};
|
||||
|
||||
var icon = L.AwesomeMarkers.icon({
|
||||
var icon = L.VectorMarkers.icon({
|
||||
icon: 'star',
|
||||
markerColor: 'cadetblue'
|
||||
markerColor: BR.conf.markerColors.poi
|
||||
});
|
||||
|
||||
var content = sanitizeHTMLContent(name) + '<br>';
|
||||
content += "<button id='remove-poi-marker' class='btn btn-secondary'><i class='fa fa-trash'></i></button>";
|
||||
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@ BR.Routing = L.Routing.extend({
|
|||
options: {
|
||||
position: 'topright',
|
||||
icons: {
|
||||
start: L.AwesomeMarkers.icon({ icon: 'play', markerColor: 'green' }),
|
||||
normal: L.AwesomeMarkers.icon({ icon: 'circle', markerColor: 'blue' }),
|
||||
end: L.AwesomeMarkers.icon({ icon: 'stop', markerColor: 'red' }),
|
||||
start: L.VectorMarkers.icon({ icon: 'play', markerColor: BR.conf.markerColors.start }),
|
||||
normal: L.VectorMarkers.icon({ icon: 'circle', markerColor: BR.conf.markerColors.via }),
|
||||
end: L.VectorMarkers.icon({ icon: 'stop', markerColor: BR.conf.markerColors.stop }),
|
||||
draw: false,
|
||||
opacity: 1
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue