[mapguide-users] Regarding Selection of features of layer
linkedwth map by Maestro API
ravinder.singh at BIRLASOFT.COM
ravinder.singh at BIRLASOFT.COM
Mon Feb 23 00:00:54 EST 2009
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: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] 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
ravinder.singh at BIRLASOFT.COM 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 (administrator at birlasoft.com) and
permanently delete this message and any attachments. Thank you."
************************************************************************
************************************************************************
*********************
________________________________
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
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(administrator at birlasoft.com) immediately and permanently delete this message and any attachments. Thank you."
************************************************************************************************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090223/c9c01042/attachment.html
More information about the mapguide-users
mailing list