Hello.<br> <br>I'm just wondering is it possible to do the following using ka-map : <br><br>- Highlight a polygon on a map that has already been drawn.<br><br>So I have a mapfile with the following<br><br>LAYER #start of "school regions"<br> NAME "school regions"<br> DATA PrimarySchool_region <br> STATUS DEFAULT<br> TYPE POLYGON<br><br> CLASSITEM "CODE"<br><br> CLASS<br> NAME "highlighted"<br> EXPRESSION "3"<br> COLOR 255 50 0<br> OUTLINECOLOR 0 0 0<br> END<br><br> CLASS<br> NAME "default"<br> COLOR 238 230 133 <br> OUTLINECOLOR 0 0 0<br> END<br><br> END<br><br>I want to select an id number from a select box and then
change the value of the expression in the "highlighted" class so that the polygon corresponding to the selected id is highlighted.<br><br>So I do a <br> call(myKaMap.server+'/setExpression.php?l='+layer+'&c='+classname+'&e='+exp,this,this.updateMap);<br><br>when I click on the select box.<br><br> setExpression.php looks like this <br><br>$oLayer = $oMap->getLayerByName($myLayerName);<br><br>for ($i=0; $i<$oLayer->numclasses; $i++)<br>{<br> $oClass = $oLayer->getClass($i);<br> if ( $oClass->name == $myClassName )<br> {<br> $oClass->setExpression($myExpression);<br> break;<br> }<br>}<br><br><br>and this is where I'm stuck. <br><br>How can I tell ka-map to redraw the tiles reflecting the changes in the mapfile?<br><br>Do I have to actually write a new mapfile on the server and then point to
that?<br><br>Thanks.<br><br>D.<br><br><p> Send instant messages to your online friends http://uk.messenger.yahoo.com