diff --git a/bower.json b/bower.json index fa807e2..781b0f8 100644 --- a/bower.json +++ b/bower.json @@ -15,7 +15,7 @@ "leaflet.draw": "~0.2.3", "bootstrap": "~3.3.4", "DataTables": "~1.10.5", - "Leaflet.Elevation": "MrMufflon/Leaflet.Elevation#master", + "leaflet.elevation": "MrMufflon/Leaflet.Elevation#master", "leaflet-control-geocoder": "~1.1.0", "L.EasyButton": "*", "bootbox": "~4.4.0", @@ -61,7 +61,12 @@ "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 }, "leaflet-control-geocoder": { @@ -71,5 +76,8 @@ "images/*.+(png|gif)" ] } + }, + "resolutions": { + "leaflet.elevation": "master" } } diff --git a/js/plugin/Elevation.js b/js/plugin/Elevation.js index b211a74..e1b61e6 100644 --- a/js/plugin/Elevation.js +++ b/js/plugin/Elevation.js @@ -21,7 +21,10 @@ BR.Elevation = L.Control.Elevation.extend({ } 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()); } } }); \ No newline at end of file