This is a hard one for me to search on. I have an object that I populate jvectormap points with:
dealers[d]["latLng"] = coords;
dealers[d]["name"] = variable1 + '<br>' + Math.round(variable2);
dealers[d]["style"] = style;
but when I pass the object into jvectormap the labels show up with <br>
in text and do not give me a line break.
var mapObject = $('#vmap').vectorMap('get', 'mapObject');
mapObject.addMarkers(dealers, []);
Is there anyway to mark the <br>
as HTML within the object so that jvectormap treats it as a break in the label and not as straight text?
" stripped off or encoded as entities? – mauris May 01 '13 at 14:27