How can I reload OSM in a hidden div? I first load it, hide the div and let the div show up onclick(). I see the OSM controls but the map doesn't appear. How to fix it? I tried:
$('#OpenLayers_Map_55_OpenLayers_ViewPort').updateSize();
Without success..
Hidden (or display: none;) contents is not loading. Try set absolute position and left: -10000px for target div. This is like hidden but not hidden.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.