[Users] Base Map Layers all get loaded on map load

Andreas Hocevar ahocevar at opengeo.org
Tue Feb 23 20:49:05 CET 2010


Dan Ramage wrote:
> Andreas,
> 
> I went and test the Release 2,8 version of that OpenLayers example and it
> has the same issue I see, thanks for the feedback.

Can you please create a ticket and upload a stripped down test case / 
example that shows the issue?

Thanks,
Andreas.

> 
> Dan
> 
> -----Original Message-----
> From: Andreas Hocevar [mailto:ahocevar at opengeo.org] 
> Sent: Wednesday, February 24, 2010 1:02 PM
> To: Dan Ramage
> Cc: 'GeoEXT Users'
> Subject: Re: [Users] Base Map Layers all get loaded on map load
> 
> Hi,
> 
> there is a simple explanation for what you were experiencing, assuming 
> that you are using OpenLayers 2.8: the Google Layer has changed since, 
> only creating one shared GMaps instance for all Google layers. This is 
> why you only see one layer being loaded in the OpenLayers google 
> example. In OpenLayers 2.8, one GMaps instance was created for every 
> Google layer, and this is why you see tiles being loaded in your 
> application.
> 
> Regards,
> Andreas.
> 
> Dan Ramage wrote:
>> I am not sure if this is an issue with GeoExt and the gx_mappanel,
> Mapfish,
>> or something else I've done, but as the Subject says when my map is first
>> loaded more than initial base map is loaded.
>>
>> I think I am triggering the load of the other base map layer when I build
> my
>> layer tree. I've got 2 Google layers and one GeoTiff for base maps.
>>
>> Doing some debugging, I've added a "loadstart" to the GeoTiff layer. This
>> event is fired if I add my ExtJS TreePanel to the viewport. If I just
> create
>> the TreePanel, but don't add it to the viewport, the layer is not loaded.
>> This only seems to be happening with this one base map layer. 
>>
>>  
>>
>> Another oddity, and I am again not sure if this is a GeoExt or OpenLayers
>> issue, is with the Google Layers. Looking at the openlayers example:
>> http://openlayers.org/dev/examples/google.html
>>
>> the net traffic shows only the Physical Map data is coming back. In my
> map,
>> I get the Physical data as well as some queries for the regular Google
>> Map/roads. There are just a few tiles for the road map, but I have no idea
>> why those are getting requested.
>>
>> The physical map requests have this format:
>> http://mt0.google.com/vt/v=app.118
>> <http://mt0.google.com/vt/v=app.118&hl=en&src=api&x=18&y=25&z=6&s=Galileo>
>> &hl=en&src=api&x=18&y=25&z=6&s=Galileo
>>
>> The "road map" seems to have this format:
>> http://mt1.google.com/vt/lyrs=m@118
>> <http://mt1.google.com/vt/lyrs=m@118&hl=en&src=api&x=35&y=50&z=7&s=Gal>
>> &hl=en&src=api&x=35&y=50&z=7&s=Gal
>>
>>  
>>
>> My site is here: http://carolinasrcoos.org/carolinasrcoos.html
>>
>>  
>>
>> I am not sure if the two issues are related at all, however I appreciate
> any
>> feedback.
>>
>>  
>>
>>  
>>
>> Dan
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at geoext.org
>> http://www.geoext.org/cgi-bin/mailman/listinfo/users
> 
> 


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


More information about the Users mailing list