Unable to open MapSelection

Farah farah at egovernments.org
Fri Aug 25 05:53:30 EDT 2006


Hi,

 

I need to iterate through the current map selection. However, the line
mapSelection.open()  gives the following error:

Does anyone know how to solve this problem?

 

Generated servlet error:

The method open(MgResourceService, String) is undefined for the type
MgSelection

 

My code:

 

MgResourceService resourceService =
(MgResourceService)siteConnection.CreateService(MgServiceType.ResourceServic
e);

MgMap map = new MgMap();

                        map.Open(resourceService, "Map");

                        MgSelection mapSelection = new MgSelection(map);

                        mapSelection.open(resourceService, "Map");

 

 

The definition for this method is: 


virtual void 

Open
<https://mapguide.osgeo.org/nonav/docs/webapi/d7/d8d/class_mg_selection_c068
d4f8815e003a4650cbea9c32bc00.html#c068d4f8815e003a4650cbea9c32bc00>
(MgResourceService
<https://mapguide.osgeo.org/nonav/docs/webapi/d8/de1/class_mg_resource_servi
ce.html>  *resourceService, CREFSTRING
<https://mapguide.osgeo.org/nonav/docs/webapi/da/d10/_common_defs_8h_2697935
ae7be4121104b37ff513b810b.html#2697935ae7be4121104b37ff513b810b>  mapName)

 

 

 

Regards

Farah

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20060825/09f85c81/attachment.html


More information about the Mapguide-users mailing list