Would a "drill down" identify be appropriate for your application? Just query 
all of the layers?



________________________________
From: Paul james <[email protected]>
To: "Fawcett, David" <[email protected]>
Cc: [email protected]
Sent: Wednesday, May 20, 2009 8:53:53 AM
Subject: Re: [mapserver-users] Get the nearest layer with mapscript...

Hi David...
In my system the user SELECT the active layer (dropdown), and so he can "query" 
it selecting a a area or a point ....

But, I´d like to take off that dropdown to select active layer... And when user 
click on map to query, I figure out what layer was clicked and query that...

Paul


On Wed, May 20, 2009 at 10:44 AM, Fawcett, David <[email protected]> 
wrote:

Paul, 
 
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?  
 
Tells 
us more about the client-side app.
 
David.
-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Paul  james

Sent: Wednesday, May 20, 2009 7:55 AM
To: [email protected]

Subject: Re: [mapserver-users] Get  the nearest layer with mapscript...


Thanks Pano...
But  It´s not that simple...
What I need is figure out what LAYER was clicked... 

Paul


On Wed, May 20, 2009 at 6:43 AM, Pano Voudouris <[email protected]> wrote:

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 ?
 
Pano
 
From:[email protected] 
[mailto:[email protected]] On Behalf Of Paul james
Sent: 19 May 2009 21:46
To: [email protected]
Subject: [mapserver-users] Get the nearest layer with mapscript...
 
Hello guys...
I have several layers (lines,  points, poly) ...
I´m developing a measure tool... User can click on map  and I have to select 
that layer to calculate de Area with  postgis...


I´m trying to do that WITHOUT using  "LAYER ACTIVE SYSTEM"...


Is That possible using mapscript? How  Can I find the nearest and toppest layer 
?

Thanks!

Paul
_______________________________________________
mapserver-users  mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users


      
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to