check-in bower_components
This commit is contained in:
parent
4cc16bccd0
commit
9e08e74132
101 changed files with 90960 additions and 0 deletions
31
bower_components/leaflet-routing/src/L.Routing.Storage.js
vendored
Normal file
31
bower_components/leaflet-routing/src/L.Routing.Storage.js
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* Leaflet Routing Storage
|
||||
*
|
||||
* Storing routable objects
|
||||
*
|
||||
* @dependencies L, L.Routing
|
||||
*
|
||||
* @usage new L.Routing(options);
|
||||
*/
|
||||
|
||||
(function () {
|
||||
L.Routing.Storage = L.MultiPolyline.extend({
|
||||
/**
|
||||
* Class constructor
|
||||
*/
|
||||
initialize: function (latlngs, options) {
|
||||
this._layers = {};
|
||||
this._options = options;
|
||||
this.setLatLngs(latlngs);
|
||||
|
||||
this.on('layeradd', function() {
|
||||
console.log('layeradd', arguments);
|
||||
}, this);
|
||||
}
|
||||
});
|
||||
|
||||
L.Routing.storage = function (latlngs, options) {
|
||||
return new L.MultiPolyline(latlngs, options);
|
||||
};
|
||||
|
||||
}());
|
||||
Loading…
Add table
Add a link
Reference in a new issue