Fix markup label handling on areas, lines, circles

This commit is contained in:
Mike Primm 2022-01-28 18:53:00 -06:00
parent 2d0a45795a
commit 47edac3a33

View File

@ -185,7 +185,7 @@ componentconstructors['markers'] = function(dynmap, configuration) {
$(popup).addClass('AreaPopup').append(area.desc); $(popup).addClass('AreaPopup').append(area.desc);
} }
else { else {
$(popup).text(area.label); $(popup).append(area.label);
} }
area.our_layer.bindPopup($(popup).html(), {}); area.our_layer.bindPopup($(popup).html(), {});
} }
@ -215,7 +215,7 @@ componentconstructors['markers'] = function(dynmap, configuration) {
$(popup).addClass('LinePopup').append(line.desc); $(popup).addClass('LinePopup').append(line.desc);
} }
else { else {
$(popup).text(line.label); $(popup).append(line.label);
} }
line.our_layer.bindPopup($(popup).html(), {}); line.our_layer.bindPopup($(popup).html(), {});
} }
@ -247,7 +247,7 @@ componentconstructors['markers'] = function(dynmap, configuration) {
$(popup).addClass('CirclePopup').append(circle.desc); $(popup).addClass('CirclePopup').append(circle.desc);
} }
else { else {
$(popup).text(circle.label); $(popup).append(circle.label);
} }
circle.our_layer.bindPopup($(popup).html(), {}); circle.our_layer.bindPopup($(popup).html(), {});
} }