[OpenLayers-Users] mouse event return clicked layer

Arnd Wippermann arnd.wippermann at web.de
Fri Sep 4 11:16:00 EDT 2009


Hi,

I use in my application the possibility to set the active layer for the map.


With this I am able to accomplish general functions like set opacity or
remove layer.
And I can decide, which special functions are possible for this layer. I.e.
if it is WMS layer, i can do a GetFeatureInfo request for that layer, if it
is a vector layer I can display a editing toolbar.

Arnd


-----Ursprüngliche Nachricht-----
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von gustavo palminha
Gesendet: Freitag, 4. September 2009 16:32
An: users at openlayers.org
Betreff: Re: [OpenLayers-Users] mouse event return clicked layer


After studying the GetFeatureInfo example from openlayers i looked into the
WSDL of the WMS server that was used for building the example.
After looking into it there was references in the WSDL about the
GetFeatureInfo. After a short look into the foruns about the GetFeatureInfo
i had the feeling that there a few stet to acomplish this, so whats called
with a fewlines of code from the OL requires a server setup (Mapserver or
Geoserver) to be able to retrieve back the information.
I will try to find a alternative solution to my application.
I was just curious if there was any way to retrive back the name of the WMS
clicked layer, because thats the only thing i need so far, the rest is done.
Regards.
 

Andreas Hocevar-2 wrote:
> 
> gustavo palminha wrote:
>> 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.
>>   
> 
> Wow, I was not aware that there is a SOAP-based flavour of 
> GetFeatureInfo that requires a WSDL. I think your point is that 
> Manifold does not support GetFeatureInfo [1].
> 
>> 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.
>>   
> 
> This sounds like re-inventing the wheel. See [1] for suggestions on how
> to work around this. You could also contact Manifold support and suggest
> they add GetFeatureInfo (hey, you paid for that software), or replace
> Manifold with some GetFeatureInfo capable WMS like Geoserver or UMN
> Mapserver.
> 
> Regards,
> Andreas.
> 
> [1] http://forum.manifold.net/forum/t82857.12
> 
> -- 
> 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-tp3579125p3580327.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list