when showing a highlight marker, respective description stays selected

This commit is contained in:
DennisSchiefer
2012-09-03 08:27:08 +01:00
parent ce1db933f3
commit 54270f5169
3 changed files with 27 additions and 5 deletions
+8
View File
@@ -38,6 +38,14 @@ show: function() {
hide: function() {
OSRM.G.map.removeLayer(this.marker);
this.shown = false;
// revert highlighted description
if( this.label == "highlight" )
if( this.description ) {
var desc = document.getElementById("description-"+this.description);
desc && (desc.className = "description-body-item");
this.description = null;
}
},
setPosition: function( position ) {
this.position = position;