Just create a new one:
ServerConnectionI con;
MgSiteConnection siteConnection = new MgSiteConnection();
siteConnection.Open(new MgUserInformation(con.SessionID));

I don't have an example for using Xml manually.

Regards, Kenneth Skovhede, GEOGRAF A/S



[email protected] skrev:

Hi,

Ok Fine.

If I want to use MgSelcetion then I have a problem.

How can I use the MgSelection wth the map created at run time?

Because when I write the below code

MgMap map = new MgMap (siteConnection);
map.Open(mgMapName); map.Open (mgMapName);

Then siteConnection will be of type MgSiteConnection & we don't have this connection because we have used Meastro API, where we have ServerConnectionI.

So, how can I pass my connection of ServerConenctionI type to MgMap Constructor which takes MgSiteConnection Type?

And the second method (xml manually), you suggested I just need some example because it's not cleared to me.

*Thanks & Regards,*

Ravinder

------------------------------------------------------------------------

*From:* [email protected] [mailto:[email protected]] *On Behalf Of *Kenneth Skovhede, GEOGRAF A/S
*Sent:* Saturday, February 21, 2009 4:44 PM
*To:* MapGuide Users Mail List
*Subject:* Re: [mapguide-users] Regarding Selection of features of layer linkedwth map by Maestro API

There is currently no methods for dealing with selections through the MaestroAPI,
so you have to use the MgSelection object from the regular API.

An alternative is to just deal with the xml manually.
It looks like this:
<FeatureSet>
  <Layer id="layer guid">
    <Class id="schema name">
      <ID>base64 encoded id</ID>
      <ID>...</ID>
    </Class>
  </Layer>
</FeatureSet>

There can be multiple layers in the selection.

I have added a ticket you can subscribe to, if you want to track my progress on making the selection easier in the MaestroAPI:
http://trac.osgeo.org/mapguide/ticket/858

Regards, Kenneth Skovhede, GEOGRAF A/S



[email protected] <mailto:[email protected]> skrev:

Hi All,

I have associated a layer to a map at run time by using maestro api.

And I got the prefect output, map is rendering properly.

But now I want to highlight/mark the features of layer, depending upon the condition entered by the user (for taking the input condition I have made my separate aspx page).

So my problem is that how to highlight/mark/select the features of the map/layer which I have created at run time by Maestro API.

I am using .net, c#, asp.net with MGOS

*Thanks & Regards,*

Ravinder

*********************************************************************************************************************************************************************
"This message and any attachments are solely for the intended recipient and may contain Birlasoft confidential or privileged information. If you are not the intended recipient,any disclosure,copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail at ([email protected] <mailto:[email protected]>) and permanently delete this message and any attachments. Thank you."
*********************************************************************************************************************************************************************


------------------------------------------------------------------------


_______________________________________________
mapguide-users mailing list
[email protected] <mailto:[email protected]>
http://lists.osgeo.org/mailman/listinfo/mapguide-users
****************************************************************************************************************************** "This message and any attachments are solely for the intended recipient and may contain Birlasoft confidential or privileged information. If you are not the intended recipient,any disclosure,copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail([email protected]) immediately and permanently delete this message and any attachments. Thank you."
************************************************************************************************************************************************************************
------------------------------------------------------------------------

_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to