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:
Norbert Renner 2015-05-23 13:31:26 +02:00
parent eee87fab7f
commit 929ef35a12
2 changed files with 14 additions and 3 deletions

View file

@ -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"
} }
} }

View file

@ -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());
} }
} }
}); });