ThinkGeo.com    |     Documentation    |     Premium Support

Problem when container div is invisible at first

I have some popups which will load with style of “display:none”.
These DIVs should contain maps, But I’m experiencing some problem with maps when popup shows up.
for instance:

  • map.HeightInPixels is equals to zero (when returns to server side).
  • Mis-location of marker’s context menu .

Is there any work around? OR i should change the way all popups showing?

Hi Reza,

I think if you set the control disabled, invisible or hidden, that shouldn’t get initialized correct.

I am not sure why you need to hide the map when page loaded, but I think if that’s necessary, maybe you can try to load map with very small size or iframe.

Regards,

Don