[OpenLayers-Dev] Google layer and div resize: wrong config or
bug?
Pierre GIRAUD
bluecarto at gmail.com
Tue Feb 5 16:38:23 EST 2008
I think this is just a OL with ExtJS issue. The fact is that there a
strange behavior even if there is no google layer.
You can easily test a simple thing. With a single layer in your map,
you can try to pan the map just after resizing an ExtJS region. You'll
see that the map behavior is weird. The map moves more than expected.
In MapFish we combine ExtJS and OL, and we often use layouts.
To prevent the issue you expose here, we created a widget that simply
calls map.updateSize() and this seems to go pretty well.
Though, I'm not sure that the bug Christopher quoted is related to
your problem also.
Regards,
Pierre
On Feb 5, 2008 9:44 PM, Diego Guidi <diegoguidi at gmail.com> wrote:
> Sorry for the cryptic post, I try to explain my problem and tomorrow I
> could send a sample code.
> I have a "terrible" bug and i need to know if it's due to my mistake
> or to a openlayers bug...
> I'm creating a website (using openlayers, of course!) that publish WMS
> data (from MapServer, but I'm using OpenLayers WMS layer).
> This data is published over Google layers: I've prepared three layers
> for satellite, maps, and hybrid google data.
> So when i use my website, the layerswitcher control shows three map
> data (from google) and a bunch of overlays.
> All works well (sorry, all works GREAT!), except...
> I'm using also ExtJS for create a flexible layout (something like
> this: http://extjs.com/deploy/dev/examples/feed-viewer/view.html),
> with a center div for openlayers and a right panel for additional
> data: the panel size is modifiable with a splitter... and here are the
> problems :(
> When i resize the splitter (and, i suppose, the center div size
> changes) the visible layers (one from google, and my data from WMS)
> are sized correctly, but when i try to show another basemap from
> google all the images are moved; looks like the tiles from google are
> in a wrong position, moved in the upper-left corner from a size that
> is not comparable to splitter move (i.e: if i move the splitter for 10
> pixels or 200 pixels, the layer movement looks the same).
> This problem is with IE7 and Firefox 2.0 (the only browser that I've tested).
> I think that the problem is not well explained, so tomorrow i could
> try to publish my website so anyone could see the problem abd look at
> the source code.
> Anyway, anyone has experienced my problem? Maybe should I simply call
> map.updateSize()?
> Thanks for any kind of support :)
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>
More information about the Dev
mailing list