initial commit
This commit is contained in:
parent
37980ff82b
commit
4cc16bccd0
17 changed files with 789 additions and 0 deletions
20
js/plugin/Routing.js
Normal file
20
js/plugin/Routing.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
BR.Routing = L.Routing.extend({
|
||||
options: {
|
||||
/* not implemented yet
|
||||
icons: {
|
||||
start: new L.Icon.Default({iconUrl: 'bower_components/leaflet-gpx/pin-icon-start.png'}),
|
||||
end: new L.Icon.Default(),
|
||||
normal: new L.Icon.Default()
|
||||
},*/
|
||||
snapping: null
|
||||
},
|
||||
|
||||
onAdd: function (map) {
|
||||
var container = L.Routing.prototype.onAdd.call(this, map);
|
||||
|
||||
// enable drawing mode
|
||||
this.draw(true);
|
||||
|
||||
return container;
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue