[OpenLayers-Trac] [OpenLayers] #1417: resizing the map quickly messes up tile load events (singleTile)
OpenLayers
trac at openlayers.org
Tue Mar 11 15:51:02 EDT 2008
#1417: resizing the map quickly messes up tile load events (singleTile)
------------------------------+---------------------------------------------
Reporter: bartvde | Owner: euzuro
Type: bug | Status: reopened
Priority: minor | Milestone: 2.6 Release
Component: Layer.Grid | Version: 2.5
Resolution: | Keywords:
State: Needs More Work |
------------------------------+---------------------------------------------
Changes (by crschmidt):
* status: closed => reopened
* state: Complete => Needs More Work
* resolution: fixed =>
Comment:
Andreas:
If you take a relatively sized WMS Untiled map (change wms-untiled to 50%
instead of 512px), then resize the map from smaller to bigger, you will
see that the image inside the map is not resizing appropriately. Reverting
this changeset fixes the problem. Removing the tiles from the grid is the
way that they get recreated and therefore resized (because initSingleTile
is called again).
Since this messes up events, I think the right solution is to check if the
event is still waiting. (I believe this state can be checked on the tile.)
If the tile is not yet loaded, then in clearGrid(), we should fire the
event before we call removeTileMonitoring hooks, presumably via
triggerEvent directly on the tile. This will cause the events to be
updated.
With your approval, I'll roll back r6436/r6437, and then we can take the
next step of actually solving the problem correctly.
--
Ticket URL: <http://trac.openlayers.org/ticket/1417#comment:6>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list