[OpenLayers-Users] Bing maps with dynamic resized map bug

Andreas Hocevar ahocevar at opengeo.org
Mon Apr 19 11:51:50 EDT 2010


Hi,

this is an issue with Bing maps that is, at least, known. Right now there is no fix for it, but the approach to fix it would be to change the Bing layer like the Google layer was recently changed: to use only one Bing Maps object per OpenLayers map, and some more love for resize event handling.

A workaround would be to remove the Bing layer *before* resizing the map, and re-add it *after* the map is resized.

Regards,
Andreas.

On Apr 19, 2010, at 16:15 , Jimmy Aumard wrote:

> Hello,
> 
> I try to change dynamically the dimension of my map, the map is correctly resized but bing map doesn't update the new size and my vectors are not correctly show.  
> I use this for change the dimension of the map:
> $('#map').css('height', '600px');
> $('#map').css('width', '600px');
> //it's juste change the dimension of the div
> 
> And after I make map.updateSize();
> It's work perfectly for google maps, osm maps and yahoo maps but not for bing maps :(
> 
> Anyone have an idea?
> 
> Thanks a lot
> 
> -- 
> Aumard Jimmy
> Développeur 
> 
> KINAXIA
> c/o CICA / PacaEst
> 2229 Route des Crêtes
> F-06560 Sophia Antipolis
> 
> Tél.: +33 (0)4 8973 0242
> Mob.: +33 (0)6 6017 2827
> Fax : +33 (0)4 8307 6583
> 
> http://www.kinaxia.fr
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.




More information about the Users mailing list