initial commit

This commit is contained in:
Norbert Renner 2014-01-27 18:34:48 +01:00
parent 37980ff82b
commit 4cc16bccd0
17 changed files with 789 additions and 0 deletions

20
js/plugin/Routing.js Normal file
View 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;
}
});