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 <pvoudou...@gaiocorp.com>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:* mapserver-users-boun...@lists.osgeo.org [mailto: > mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Paul james > *Sent:* 19 May 2009 21:46 > *To:* mapserver-users@lists.osgeo.org > *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 > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users