On Apr 19, 2010, at 17:54 , Jimmy Aumard wrote:

> Thanks!!
> 
> I have find another solution :
> 
> map.getLayersBy('name','bing_str')[0].mapObject.Resize(500,500);
> 
> I resize the bing map object for each layer and it's works.

Oh, in that case I assume you are still using OpenLayers 2.8? This is fixed in 
2.9 (see http://trac.openlayers.org/ticket/2285).

-Andreas.


> 
> Cheers
> 
> 2010/4/19 Andreas Hocevar <[email protected]>
> 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
> > [email protected]
> > http://openlayers.org/mailman/listinfo/users
> 
> 
> 
> --
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.
> 
> 
> 
> 
> -- 
> 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

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

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to