[mapserver-users]: PHP/mapscript: Querybypoint->How tohighlight the selected record?

Peter blackmail@snafu.de
Tue, 26 Mar 2002 18:18:17 +0100


--------------080805010702040606050400
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

This one is running &working, but now the highlighting : How to do it?
  
    $theresult = $resultlayer -> getResult (0);
    $shapefile = ms_newShapefileObj ('C:\Programme\Apache 
Group\Apache\htdocs\immogis3w\code\data\objekte', -1);
    $resultshape = $shapefile -> getShape ($theresult -> shapeindex);
    $resultbounds = $resultshape -> bounds;
    
    /* Zoom to Extents  */
    $map -> setExtent ($resultbounds -> minx-80, $resultbounds -> 
miny-80,$resultbounds -> maxx+80, $resultbounds -> maxy+80);
  

--------------080805010702040606050400
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<html>
<head>
</head>
<body>
This one is running &amp;working, but now the highlighting : How to do it?<br>
&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; <i>$theresult = $resultlayer -&gt; getResult (0);<br>
&nbsp;&nbsp;&nbsp; $shapefile = ms_newShapefileObj ('<a class="moz-txt-link-freetext" href="C:\Programme\Apache">C:\Programme\Apache</a> Group\Apache\htdocs\immogis3w\code\data\objekte',
-1);<br>
&nbsp;&nbsp;&nbsp; $resultshape = $shapefile -&gt; getShape ($theresult -&gt; shapeindex);<br>
&nbsp;&nbsp;&nbsp; $resultbounds = $resultshape -&gt; bounds;<br>
&nbsp;&nbsp; &nbsp;<br>
&nbsp;&nbsp;&nbsp; /* Zoom to Extents&nbsp; */<br>
&nbsp;&nbsp;&nbsp; $map -&gt; setExtent ($resultbounds -&gt; minx-80, $resultbounds -&gt;
miny-80,$resultbounds -&gt; maxx+80, $resultbounds -&gt; maxy+80);</i><br>
&nbsp;&nbsp;
</body>
</html>

--------------080805010702040606050400--