<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div>Hi,</div>
<div> </div>
<div>I query a feature source, create a selection and render a map.</div>
<div>That map should higlight the selected features – but it doesn’t and I don’t know why. I guess I haven‘t understood how it works.</div>
<div> </div>
<div>I’m not using any viewer – I render the map through a PHP script. I need the script to generate maps in order to get maps into Crystal Reports and other applications (Rest is not an option unfortunately as I sometimes need a feature highlighted, sometimes
I dont want it highlighted, GeoRest is slow since I moved to new release).</div>
<div> </div>
<div> </div>
<div>Here is the code snipped:</div>
<div> </div>
<div>$FeatureResId = new MgResourceIdentifier($FeatureResIdString); </div>
<div>$queryOptions = new MgFeatureQueryOptions(); </div>
<div>$queryOptions->SetFilter($FILTER);</div>
<div>$featureReader = $featureService->SelectFeatures($FeatureResId, $layerClassName1, $queryOptions); </div>
<div>$selection = new MgSelection($map);</div>
<div>// code for getting coordinates of selected features</div>
<div>…</div>
<div>///</div>
<div>$selection->AddFeatures($myLayer, $featureReader, 0);</div>
<div>$byteReader = $renderingService->RenderMap($map, $selection, $CENTER, $SCALE, $MAPSIZEWIDHT, $MAPSIZEHEIGHT, $BACKGROUNDCOLOR, 'PNG');</div>
<div> </div>
<div>Can anyone help me out here?</div>
<div>What needs to be done to get selected features highlighted in a rendered map?</div>
<div> </div>
<div>Many thanks, Rob</div>
<div> </div>
<div> </div>
</span></font>
</body>
</html>