[mapguide-users] Select Features from Task Frame

ary sucaya ary.sucaya at yahoo.com
Fri Feb 1 12:48:19 EST 2008


Try this php code:

$userInfo = new MgUserInformation($sessionId);
$siteConnection = new MgSiteConnection();
$siteConnection->Open($userInfo);
$map = new MgMap($siteConnection);
$map->Open($mapName);
$queryOptions = new MgFeatureQueryOptions();
$queryOptions->SetFilter("$attributeName = '$attributeValue'");
$layer = $map->GetLayers()->GetItem($layerName);
$featureReader = $layer->SelectFeatures($queryOptions);
$selection = new MgSelection($map);
$selection->AddFeatures($layer, $featureReader, 0);
$selectionXml = $selection->ToXml();
echo $selectionXml;

execute that php code from your javascript function and add parent.parent.mapFrame.ExecuteMapAction(10); subsequently



----- Original Message ----
From: Rahul <unicorn_admirer at yahoo.com>
To: MapGuide Users Mail List <mapguide-users at lists.osgeo.org>
Sent: Friday, February 1, 2008 5:50:03 AM
Subject: [mapguide-users] Select Features from Task Frame


Hi All,
 
            I able to search and filter the results and then display it in the task pane with zoomto view hyperlink ,so if user click on the zoom icon it use to go to that location and show the parcel/land with on the fly marker.Now what i am looking for is that with the same click icon ,i want to zoom to that location as well as select the feature with property info of that item displayed in the property pane. I tried SelXml()but i use to get error ,Anyone have idea how to getXml of each features dispalyed in the task pane list and then get the property info of that selected feature.
 
Thks
Max !!



Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.


-----Inline Attachment Follows-----

_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20080201/cb50bf21/attachment.html


More information about the mapguide-users mailing list