Ticket #231 (closed defect: wontfix)

Opened 5 months ago

Last modified 5 months ago

Multiple Base Layers queried during inital map load

Reported by: dan Assigned to:
Priority: major Milestone: 0.7
Component: GeoExt Version: trunk
Keywords: Cc:
State: None

Description

I've noticed that during my maps initial load, the base layer which is set as the base layer is queried as well as another base layer. In the example I've attached, the Google Terrain layer is set as the base layer, but the NOAA chart layer also is queried during the initial load. To try and trace where the load is being caused, I added a "loadstart" event to the NOAA GeoTiff layer. I then discovered the "enforceOneVisible" is getting called which in turns calls the layers "setVisible" function which I believe initiates the unwanted query. Further testing reveals that the call to OpenLayers "setCenter" function is what seems to trigger the load. The is called during the map's initialization function, in the example file it is the "realTimeMapInit" function. I used Firefox's Firebug debugger to debug this issue. By watching the Net traffic I could see the unwanted WMS query.

Attachments

baselayertst.html (15.5 kB) - added by dan on 03/01/10 15:59:05.
Test Javscript exhibiting the issue.

Change History

03/01/10 15:59:05 changed by dan

  • attachment baselayertst.html added.

Test Javscript exhibiting the issue.

03/01/10 16:18:01 changed by dan

  • status changed from new to closed.
  • resolution set to wontfix.

After further testing and thinking, most likely my code is the issue. I am calling the setCenter function before I've created the viewport. This is a holdover from my migrating over to the MapFish/GeoExt framework. It doesn't make sense to make the setCenter call before I've rendered the map panel. I'll change the ticket resolution as wontfix for now unless could be considered a potential condition worth checking for.