Contents
|
Index
Example: Listing Selected Parcels (DWF Viewer)
Active Selections
Example: Setting the Active Selection
MapGuide Developer's Guide
Setting the Active Selection With the Web API
To set the run-time map selection using a query, perform the following steps:
Create a selection as described in
Selecting with the Web API
. This creates a feature reader containing the selected features.
Create an
MgSelection
object to hold the features in the feature reader.
Send the selection to the viewer, along with a call to the Viewer API function
SetSelectionXML()
.