[Chameleon-dev] [Bug 1794] [Chameleon-Widget]Infinite loop of zoom
in and out after changing scale and a layer status (JSAPI mode)
bugzilla-daemon at bugzilla.maptools.org
bugzilla-daemon at bugzilla.maptools.org
Thu Oct 4 15:30:46 EDT 2007
http://bugzilla.maptools.org/show_bug.cgi?id=1794
nsavard at mapgears.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
------- Additional Comments From nsavard at mapgears.com 2007-10-04 15:30 -------
It didn't have nothing to do with the layer status. The problem was that when a
user zoom in it triggered a MAP_EXTENT_CHANGED event. clickUpdateMap() was
called before ScaleWMapExtentsChanged() that updates the scale value (scale
widget). The following test which verified that the actual map scale was not
the same as the scale displayed by the scale widget was always true.
clickUpdateMap() triggered MAP_EXTENT_CHANGED event again and again. Also
UPDATE_MAP was set when a user pressed a key for the UpdateMap widget to detect
a scale change and was not reset.
I removed the scale test and reset UPDATE_MAP after ZoomToScale function call.
if( ({$this->mszHTMLForm}.UPDATE_MAP.value == "1") && (goCWCJSAPI.oMap.scale !=
{$this->mszHTMLForm}.SCALE.value) )
{
goCWCJSAPI.oMap.oApplication.ZoomToScale({$this->mszHTMLForm}.SCALE.value);
}
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
Please do NOT reply to this email, use the link above instead to
login to bugzilla and submit your comment. Any email reply to this
address will be lost.
More information about the Chameleon-dev
mailing list