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"><<a 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 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></div><div class="im"><b>Sent:</b> Wednesday, May 20, 2009 7:55 AM<br><b>To:</b>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">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"><<a href="mailto:pvoudouris@gaiocorp.com" target="_blank">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 vlink="purple" link="blue" 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>
<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" target="_blank">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></div></div></blockquote></div>
</blockquote></div><br>