[OpenLayers-Users] Switch to google layer set diff center then
at other layers
Mikesamar
tech at reumer.net
Fri Sep 5 13:15:05 EDT 2008
Thanks Salvaro
Can you tell me where you made these changes in openlayers?
Is somebody of openlayers also working on this problem?
I've debugged it and it looks like the onMapResize is only called once and
not for all layers with google maps (I've three). Is there for each google
layer a seperated object?
If I remove the checkResize in onMapResize then the first google map is
showing allright. But when I resize the window then more layers are not
allright, only the current showing is allright.
It's a very strange problem.
Mike
Salvaro wrote:
>
>
> I've the same problem. It seems the Google Layer have no data (including
> the
> center) when was loaded for the first time.
> Temporarily I solved it getting the center before change the layer, and
> setting a new center after. Isn't the best solution, but works well
> hehehe.
>
> (To solve the problem with Markers, I just redraw the layer when the layer
> is changed).
>
> Salvaro.
>
>
--
View this message in context: http://www.nabble.com/Switch-to-google-layer-set-diff-center-then-at-other-layers-tp19277367p19335771.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list