[mapguide-users] Bug in SetSelection?
joleary.public at gmail.com
Tue Feb 13 10:54:04 EST 2007
Is there a bug in the SetSelectionXML function? When you call it
programmatically, the Properties table returns the XML for an adjacent
feature, not the feature you have selected.
I have made a demo of this bug at
have changed the filter behind the Set active selection link so it only
retrieves one parcel, ID 603510. Clicking this link selects a parcel on the
map, which triggers an Ajax lookup that displays the properties for this
parcel in the Properties table.
However, the properties that display are actually for the parcel to the left
of the selected parcel, ID 603520. You can verify this by clicking on that
parcel to the left. That parcel's ID in the Properties table displays as
603520. Clicking back on the parcel to the right now displays ID 60310, the
correct ID for this parcel.
The problem appears to occur in the SetSelection() function in
ajaxmappane.templ, around line 2349. The function makes an Ajax call to
setselection.php, sending it XML containing the ID of the selection.
However, the XML that returns from this call contains the ID and properties
of the adjacent parcel.
When the user clicks directly on the map, the selection is correct. This
selection is created by another process.
You can work around this problem by clearing the property table after the
selectionXML, like this:
// From the taskpane frame.
View this message in context: http://www.nabble.com/Bug-in-SetSelection--tf3221393s16610.html#a8946749
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users