[OpenLayers-Users] mouse event return clicked layer

gustavo palminha gustavopalminha at hotmail.com
Fri Sep 4 10:05:14 EDT 2009


Hello andreas.
I bottom line is that i would like to create a sort of GetFeatureInfo for my
WMS layers.
I do not use mapserver or geoserver, instead i use manifold gis which doen
not provide a valid WSDL for a working GetFeatureInfo.
So my main goal would be to know how to discover a way to capture the name
of the clicked wms layer.
Assuming that this is not possible i was thinking about doing this:
OL Side (client side)
•Build a list of shown/active layers (by reading the layers on the layser
selection menu)
•Pass this list to a webservice with the x,y
Server Side (webservice)
•Filter them excluding the ones from the list where they did not
touch/intersect the x/y
•Read back the items retrieved and the user should have pressed the last
layer in the list.
Regards.
G.P.

What i would like to do is to capture the

Andreas Hocevar-2 wrote:
> 
> gustavo palminha wrote:
>> Hello to all.
>> I was trying to find a way to accomplish as stated in the subject.
>> But i was not able to fo it, so my question if it's posible?
>> Hope if anyone could share any ideas on this. 
>> Regards.
>>   
> Please provide a bit more context. Since all layers are vertically
> stacked, what layer are you expecting to get returned? There will most
> likely be more than one layer underneath the mouse cursor. Or are we
> talking about features rather than layers?
> 
> Regards,
> Andreas.
> 
> -- 
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 


-----
Regards.
GP
-- 
View this message in context: http://n2.nabble.com/mouse-event-return-clicked-layer-tp3579125p3580166.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list