[Chameleon-dev] [Bug 1108] odd code in Locate.phtml
bugzilla-daemon at bugzilla.maptools.org
bugzilla-daemon at bugzilla.maptools.org
Fri Mar 17 13:25:56 EST 2006
http://bugzilla.maptools.org/show_bug.cgi?id=1108
------- Additional Comments From nsavard at mapgears.com 2006-03-17 13:25 -------
Actually in Locate.widget.php in parseURL() if the szElementType is a FEATURE it
will go through the same code as if it was a RECTANGLE. But in LocateCB()
JavaScript function the case where szElementType is a FEATURE is not taking care
of. So we need to add a new condition in the if statement to include the case
where szElementType is a FEATURE.
Modify:
else if ({$this->mszHTMLForm}.LOCATE_ELEMENT_TYPE.value = "RECTANGLE" )
{
code
} }
To:
else if (({$this->mszHTMLForm}.LOCATE_ELEMENT_TYPE.value == "RECTANGLE" ) ||
({$this->mszHTMLForm}.LOCATE_ELEMENT_TYPE.value == "FEATURE" ) )
{
code
}
And I want to change the code on Locate.phtml in apply() function to be as follow.
var aVals = szLatLong.split( "|" );
if (aVals.length > 2)
{
szElementType = "FEATURE";
}
else if (aVals.length < 3)
{
if (aVals[1].indexOf( ";" ) != -1)
{
szElementType = "RECTANGLE";
}
}
[
------- 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