Developer's Guide - MapGuide Open Source - OSGeo
Developer's Guide - MapGuide Open Source - OSGeo
Developer's Guide - MapGuide Open Source - OSGeo
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
$layer = $map->GetLayers()->GetItem('Parcels');<br />
$selection = new MgSelection($map);<br />
$selection->AddFeatures($layer, $featureReader, 0);<br />
$selectionXml = $selection->ToXml();<br />
echo 'Setting selection...';<br />
}<br />
catch (MgException $e)<br />
{<br />
echo $e->GetMessage();<br />
echo $e->GetDetails();<br />
}<br />
?><br />
<br />
<br />
<br />
<br />
<br />
<br />
function OnPageLoad()<br />
{<br />
selectionXml = '';<br />
parent.parent.SetSelectionXML(selectionXml);<br />
}<br />
<br />
<br />
54 | Chapter 3 Working With Feature Data