[Users] One basic question
Tim Schaub
tschaub at opengeo.org
Thu Feb 11 19:15:32 CET 2010
Ozgur Zan wrote:
> Dear List member,
>
> I have installed Geoserver and using Geo Ext (OpenLayers, Ext Js, GWT) I
> design the interfaces for navigating layers in a map. I appreciate if you
> can help me with the following basic question:
>
> - The aim is to display further information about the place where the user
> clicks in the WMS layer. It already works in Geoserver but not in GeoExt. I
> do not know how to fetch (which protocol, format, functions to use) data
> from Geoserver to Geo Ext.
>
The WMS protocol defines a GetFeatureInfo method. You can issue a
GetFeatureInfo to get information about any number of layers based on a
user's click. When the response returns, you can display the server
generated info in a popup (for example).
Relevant example from OpenLayers:
http://openlayers.org/dev/examples/getfeatureinfo-popup.html
The WFS protocol defines a GetFeature method. You can issue a
GetFeature request to get feature data based on a click (bounding box or
other filter in a query). When the response returns, you can render any
features or feature attributes on the client.
Relevant example from OpenLayers:
http://openlayers.org/dev/examples/getfeature-wfs.html
The WMSGetFeatureInfo control from OpenLayers can be wrapped in a
GeoExt.Action if you want to add a button to an Ext toolbar:
http://dev.geoext.org/trunk/geoext/examples/toolbar.html
You can also use a GeoExt.Popup to display content anchored to the map:
http://dev.geoext.org/trunk/geoext/examples/popup.html
Hope that helps point you in the right direction.
Tim
> Thanks for your support in advance.
> Ozgur ZAN
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
--
Tim Schaub
OpenGeo - http://opengeo.org
Expert service straight from the developers.
More information about the Users
mailing list