Remove marker label field if label for marker is blank ("")

This commit is contained in:
Mike Primm 2011-12-16 01:24:38 +08:00 committed by mikeprimm
parent 3c849b9d66
commit 4a3e95a118

View File

@ -78,7 +78,7 @@ componentconstructors['markers'] = function(dynmap, configuration) {
.addClass('markerName' + marker.dim)
.append(marker.label));
}
else
else if(marker.label != "")
$(div).append($('<span/>')
.addClass(configuration.showlabel?'markerName-show':'markerName')
.addClass('markerName_' + set.id)