Sireesha,<br><br>Assuming the mapObj.drawQuery method is not appropriate for you (as you intend to use a custom symbol for highlighting), you might want to create a new layer on the top of the map, such as:<br><br>layer = new layerObj(map);<br>
<a href="http://layer.name">layer.name</a> = &quot;overlay layer&quot;;<br>layer.status = mapscript.MS_ON;<br>layer.type = MS_LAYER_TYPE.MS_LAYER_POINT;<br>classObj newclass = new classObj(layer);<br><a href="http://newclass.name">newclass.name</a> = &quot;Cosmetic&quot;;<br>
styleObj style = new styleObj(newclass);<br>style.setSymbolByName(map, &quot;symbolname&quot;);<br>...<br><br>then you should populate this layer with the selection data:<br><br>querylayer.open();<br>resultCacheObj results = querylayer.getResults();<br>
if (results != null &amp;&amp; results.numresults &gt; 0)<br>{<br>       resultCacheMemberObj res;<br>       shapeObj feature;<br>       for (int j = 0; j &lt; results.numresults; j++)<br>       {<br>                res = results.getResult(j);<br>
                feature = querylayer.getFeature(res.shapeindex, res.tileindex);<br>                if (feature != null)<br>                      layer.addFeature(feature);<br>       }<br>}<br>querylayer.close();<br><br><br>
Best regards,<br><br>Tamas<br><br><br><br><div class="gmail_quote">2010/2/23 sireesha <span dir="ltr">&lt;<a href="mailto:sireesha_alloori@satyam.com">sireesha_alloori@satyam.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Dear All,<br>
<br>
I am developing an application using mapserver.<br>
<br>
My requirement is when i select a district in dropdown list the<br>
corresponding villages should be highlighed with a different symbol.<br>
District is a polygon layer and villages are point layer.<br>
I have given symbols to the point layer in mapfile.<br>
Now how do i change the symbol of selected points(villages) in the point<br>
layer?<br>
<br>
I tried to create a dummy layer in map file and then add selected points to<br>
the dummylayer  but it is not working.<br>
<br>
Please help me.<br>
<br>
Thank you.<br>
<br>
Regards,<br>
Sireesha<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n2.nabble.com/Highlighting-symbols-dynamically-on-a-point-layer-using-C-mapscript-tp4617293p4617293.html" target="_blank">http://n2.nabble.com/Highlighting-symbols-dynamically-on-a-point-layer-using-C-mapscript-tp4617293p4617293.html</a><br>

Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</font></blockquote></div><br>