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

Dan Ramage dan at inlet.geol.sc.edu
Tue Feb 23 19:00:49 CET 2010


I may be on the trail of what is happening. When I create my tree nodes, for
the base layer I just create the following and all the base layers fall into
that grouping:

treeNodes.push(        

  {

   nodeType: "gx_baselayercontainer",

   expanded: true

  }

);

 

I don't have any code to set the check box for the active base layer,
although the correct one is getting set, the function enforceOneVisible is
getting called for the GeoTIFF layer which in turns sets the visibility to
true. 

I think because I don't have any code that specifically sets the checked
status for the base layer I want initially visible this is causing my issue.

 


Dan

 

 

  _____  

From: users-bounces at geoext.org [mailto:users-bounces at geoext.org] On Behalf
Of Dan Ramage
Sent: Tuesday, February 23, 2010 12:12 PM
To: 'GeoEXT Users'
Subject: [Users] Base Map Layers all get loaded on map load

 

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100223/3f951819/attachment-0001.htm 


More information about the Users mailing list