<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><div>Would a "drill down" identify be appropriate for your application? Just query all of the layers?</div><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Paul james &lt;pauljame@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> "Fawcett, David" &lt;David.Fawcett@state.mn.us><br><b><span style="font-weight: bold;">Cc:</span></b> mapserver-users@lists.osgeo.org<br><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, May 20, 2009 8:53:53 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [mapserver-users] Get the nearest layer with mapscript...<br></font><br>Hi
 David...<br>In my system the user SELECT the active layer (dropdown), and so he can "query" it selecting a a area or a point ....<br><br>But, I´d like to <span class="Apple-style-span" style="border-collapse:separate;color:rgb(0, 0, 0);font-family:arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;"><span class="Apple-style-span" style="border-collapse:collapse;font-family:Arial;white-space:pre;">take off that </span></span>dropdown to select active layer... And when user click on map to query, I figure out what layer was clicked and query that...<br>
<br>Paul<br><br><div class="gmail_quote">On Wed, May 20, 2009 at 10:44 AM, Fawcett, David <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:David.Fawcett@state.mn.us" target="_blank" href="mailto:David.Fawcett@state.mn.us">David.Fawcett@state.mn.us</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>
<div><span><font size="2" color="#0000ff" face="Arial">Paul, 
</font></span></div>
<div><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
<div><span><font size="2" color="#0000ff" face="Arial">I 
would guess that this really is about the client-side map interface and not 
about MapServer.  Does your interface only allow them to click/select the 
topmost layer?  Do you pick which layer is selectable?  Do you let 
them pick which layer is selectable?  Is it random?  
</font></span></div>
<div><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
<div><span><font size="2" color="#0000ff" face="Arial">Tells 
us more about the client-side app.</font></span></div>
<div><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
<div><span><font size="2" color="#0000ff" face="Arial">David.</font></span></div>
<blockquote style="margin-right:0px;">
  <div></div>
  <div dir="ltr" align="left" lang="en-us"><font size="2" face="Tahoma"><div class="im">-----Original Message-----<br><b>From:</b> 
  <a rel="nofollow" ymailto="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank" href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a> 
  [mailto:<a rel="nofollow" ymailto="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank" href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b>Paul 
  james<br></div><div class="im"><b>Sent:</b> Wednesday, May 20, 2009 7:55 AM<br><b>To:</b> 
  <a rel="nofollow" ymailto="mailto:mapserver-users@lists.osgeo.org" target="_blank" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br></div><div><div></div><div class="h5"><b>Subject:</b> Re: [mapserver-users] Get 
  the nearest layer with mapscript...<br><br></div></div></font></div><div><div></div><div class="h5">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">&lt;<a rel="nofollow" ymailto="mailto:pvoudouris@gaiocorp.com" target="_blank" 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 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);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 rel="nofollow" ymailto="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank" href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a> [mailto:<a rel="nofollow" ymailto="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank" href="mailto:mapserver-users-bounces@lists.osgeo.org">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 rel="nofollow" ymailto="mailto:mapserver-users@lists.osgeo.org" target="_blank" href="mailto:mapserver-users@lists.osgeo.org">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>
    <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 rel="nofollow" ymailto="mailto:mapserver-users@lists.osgeo.org" target="_blank" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br><a rel="nofollow" target="_blank" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br></div></div></blockquote></div>
</blockquote></div><br>
</div></div><div style="position:fixed"></div></div><br>

      </body></html>