14.01.2013 Views

Developer's Guide - MapGuide Open Source - OSGeo

Developer's Guide - MapGuide Open Source - OSGeo

Developer's Guide - MapGuide Open Source - OSGeo

SHOW MORE
SHOW LESS

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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!