Thanks Pano...<br>But It´s not that simple...<br>What I need is figure out what LAYER was clicked... <br><br>Paul<br><br><div class="gmail_quote">On Wed, May 20, 2009 at 6:43 AM, Pano Voudouris <span dir="ltr"><<a href="mailto:pvoudouris@gaiocorp.com">pvoudouris@gaiocorp.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><span style="font-size: 9pt; color: rgb(31, 73, 125);">Probably don’t understand what exactly you are trying to achieve
here but it is not as simple as map.getLayer(0) to get the topmost layer? And
once you have the layer object use one of the query function to select the record?
E.g. myLayerObj.queryByPoint ?</span></p>
<p><span style="font-size: 9pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 9pt; color: rgb(31, 73, 125);">Pano</span></p>
<p><span style="font-size: 9pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p style="margin-left: 36pt;"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> <a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>
[mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b>Paul james<br>
<b>Sent:</b> 19 May 2009 21:46<br>
<b>To:</b> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<b>Subject:</b> [mapserver-users] Get the nearest layer with mapscript...</span></p>
</div><div><div></div><div class="h5">
<p style="margin-left: 36pt;"> </p>
<p style="margin-left: 36pt;">Hello guys...<br>
I have several layers (lines, points, poly) ...<br>
I´m developing a <span><span style="font-size: 10pt; color: black;">measure tool... User can click on
map and I have to select that layer to calculate de Area with postgis...</span></span><span style="font-size: 10pt; color: black;"><br>
<br>
<span></span></span></p>
<p style="margin-left: 36pt;"><span><span style="font-size: 10pt; color: black;">I´m
trying to do that WITHOUT using "LAYER ACTIVE SYSTEM"...</span></span><span style="font-size: 10pt; color: black;"><br>
<br>
<span></span></span></p>
<p style="margin-left: 36pt;"><span><span style="font-size: 10pt; color: black;">Is That
possible using mapscript? How Can I find the nearest and toppest layer ?</span></span><span style="font-size: 10pt; color: black;"><br>
<br>
<span>Thanks!</span><br>
<br>
<span>Paul</span></span></p>
</div></div></div>
</div>
<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>
<br></blockquote></div><br>