Hi Igor,
In Javascript, if we don't assign width and height to object, we cannot get these value from it. So we still suggest you pass width and height in as parameter.
If you want to click on map without blinking, I think you can find some related topic about this. Here is some sample code about how to communicate with server side without callback by map control.
<script language="javascript" type="text/javascript">
function _doCalc(evt) {
var e = evt;
var map = Map1.GetOpenLayersMap();
var mapPoint = map.getLonLatFromViewPortPx(new OpenLayers.Pixel(evt.xy.x, evt.xy.y));
WebForm_DoCallback('__Page', evt.layerX + ',' + evt.layerY, callback, null, null, false);
}
function callback(result) {
alert(result);
}
</script>
Here is some client API:
gis.thinkgeo.com/Support/Dis...fault.aspx
I think the logic shoud be:
1. You get marker id client side, sent it back to server via callback, get popup information in client side, show it in marker.
2. You find marker client side, it should contains popup which had been added in server side, show it by Javascript.
Regards,
Don