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

Jimmy Aumard jimmy.aumard at gmail.com
Mon Apr 19 11:54:15 EDT 2010


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.

Cheers

2010/4/19 Andreas Hocevar <ahocevar at opengeo.org>

> 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.
>
>


-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100419/15195393/attachment.html


More information about the Users mailing list