[OpenLayers-Users] Switch to google layer set diff center then at other layers

Salvaro asufsc at gmail.com
Mon Sep 8 07:59:18 EDT 2008


I'm using openlayers with gwt, then I change "manually" the layers.
I guess you can do the same with only the openlayers using the events to get
the data before and set after the layer's change.

And you've to keep the "checkresize()" method. Here was the unique way to
solve this same problem hehehe.

Salvaro.


Mikesamar wrote:
> 
> 
> 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.
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://n2.nabble.com/Switch-to-google-layer-set-diff-center-then-at-other-layers-tp835689p1057855.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list