[OpenLayers-Users] OpenLayers.Map.render possible bug

Andreas Hocevar ahocevar at opengeo.org
Mon Jul 8 06:41:50 PDT 2013


Can you be a bit more specific and explain what you mean by "container is
split in two"? A screenshot maybe?

Thanks,
Andreas.


On Mon, Jul 8, 2013 at 2:05 PM, Nuno Magalhães <nuno.magalhaes at inov.pt>wrote:

> If I write the following code:
>
> ---
> var resizeTimeoutId;
> function schedulePageResize() {
>   clearTimeout(resizeTimeoutId);
>   resizeTimeoutId = setTimeout('doPageResize();', 10);
> }
> function doPageResize() {
>   //Refresh map (sometimes needs this to reposition map correctly)
>   //OpenLayers-2.12 needs this to reposition vector data correctly
>   myMapObj = this.document.getElementById('myMap');
>   if (map != null) map.render(myMapObj);
> }
> ---
>
> and call it on the body "onresize" event handler the container is split in
> two (in the latest version of open layers - 2.13). Why?
>
> I attach the html file that causes this issue.
>
> page.html <http://osgeo-org.1560.x6.nabble.com/file/n5064681/page.html>
>
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/OpenLayers-Map-render-possible-bug-tp5064681.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130708/5adcb020/attachment-0001.html>


More information about the Users mailing list