
Currently when adding an HTML element to the map the alignment appears to be failing, so even though i set the alignment to be MID VERT and MID HORIZ it aligns to 'TOP LEFT'.
You can clearly see this in the attached image. The drawn circle at the same XY is correct but the HTML element added to the same XY is aligning to the top left of the icon
sample code:
Code: Select all
var html = new vector.HTML();
html.set({x:con.x,y:con.y});
html.setAlignment(VectorLayerClass.ALIGN_MID_VERT + VectorLayerClass.ALIGN_MID_HORIZ);
html.setHtml('<img id="img27448381L2D" src="./romapicons/cir1/cir10DFCA4.png" />');
html.setTopLevel(true);
vectorLayer.addElement(html);