leaflet.elevation: disable sync from track for now; force master in bower
(master: 0.0.4, relases: 0.0.3, bower.json: 0.0.2); use lowercase as in registry
This commit is contained in:
parent
eee87fab7f
commit
929ef35a12
2 changed files with 14 additions and 3 deletions
12
bower.json
12
bower.json
|
|
@ -15,7 +15,7 @@
|
||||||
"leaflet.draw": "~0.2.3",
|
"leaflet.draw": "~0.2.3",
|
||||||
"bootstrap": "~3.3.4",
|
"bootstrap": "~3.3.4",
|
||||||
"DataTables": "~1.10.5",
|
"DataTables": "~1.10.5",
|
||||||
"Leaflet.Elevation": "MrMufflon/Leaflet.Elevation#master",
|
"leaflet.elevation": "MrMufflon/Leaflet.Elevation#master",
|
||||||
"leaflet-control-geocoder": "~1.1.0",
|
"leaflet-control-geocoder": "~1.1.0",
|
||||||
"L.EasyButton": "*",
|
"L.EasyButton": "*",
|
||||||
"bootbox": "~4.4.0",
|
"bootbox": "~4.4.0",
|
||||||
|
|
@ -61,7 +61,12 @@
|
||||||
"dist/fonts/*"
|
"dist/fonts/*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"Leaflet.Elevation": {
|
"leaflet.elevation": {
|
||||||
|
"main": [
|
||||||
|
"dist/leaflet.elevation-0.0.4.src.js",
|
||||||
|
"dist/leaflet.elevation-0.0.4.css",
|
||||||
|
"dist/images/*.png"
|
||||||
|
],
|
||||||
"dependencies": null
|
"dependencies": null
|
||||||
},
|
},
|
||||||
"leaflet-control-geocoder": {
|
"leaflet-control-geocoder": {
|
||||||
|
|
@ -71,5 +76,8 @@
|
||||||
"images/*.+(png|gif)"
|
"images/*.+(png|gif)"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"resolutions": {
|
||||||
|
"leaflet.elevation": "master"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,10 @@ BR.Elevation = L.Control.Elevation.extend({
|
||||||
}
|
}
|
||||||
|
|
||||||
if (track && track.getLatLngs().length > 0) {
|
if (track && track.getLatLngs().length > 0) {
|
||||||
this.addData(track.toGeoJSON(), layer);
|
// TODO disabled track layer mouseover, as it doesn't really work
|
||||||
|
// with line marker and indicator does not get removed (no mouseout?)
|
||||||
|
//this.addData(track.toGeoJSON(), layer);
|
||||||
|
this.addData(track.toGeoJSON());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Loading…
Add table
Add a link
Reference in a new issue