AW: [OpenLayers-Users] Infoformat WMSGetFeatureInfo problem
withArcGISServer WMS
Arnd Wippermann
arnd.wippermann at web.de
Tue Dec 6 15:02:14 EST 2011
Hi,
You can set the property with your value.
/**
* Class: OpenLayers.Control.WMSGetFeatureInfo
* The WMSGetFeatureInfo control uses a WMS query to get information about a
point on the map. The
* information may be in a display-friendly format such as HTML, or a
machine-friendly format such
* as GML, depending on the server's capabilities and the client's
configuration. ...
*
* Inherits from:
* - <OpenLayers.Control>
*/
OpenLayers.Control.WMSGetFeatureInfo = OpenLayers.Class(OpenLayers.Control,
{
...
/**
* Property: infoFormat
* {String} The mimetype to request from the server
*/
infoFormat: 'text/html',
Example:
infoControls = {
click: new OpenLayers.Control.WMSGetFeatureInfo({
url: 'http://demo.opengeo.org/geoserver/wms',
title: 'Identify features by clicking',
layers: [water],
infoFormat : 'application/vnd.ogc.gml',
queryVisible: true
}),
Arnd
-----Ursprüngliche Nachricht-----
Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von
Morper-Busch, Lucia
Gesendet: Dienstag, 6. Dezember 2011 15:02
An: users at openlayers.org
Betreff: AW: [OpenLayers-Users] Infoformat WMSGetFeatureInfo problem
withArcGISServer WMS
Hello,
now I was able to localize the problem. When I use InfoFormat='text/html',
the WMSgetFeatureRequest gives me a nice html table back (style from
ArcGIS). But I want to use InfoFormat='application/vnd.ogc.gml' to read the
attributes from the response in order to compose my own output. In addition
the text/html-Format is overriding my CSS styles.
Question: How can I use WMSgetFeatureInfo with
InfoFormat='application/vnd.ogc.gml' querying ArcGIS Server WMS in a
Openlayers application?
Thank you
Lucia
Dipl.-Geogr. Lucia Morper-Busch | Researcher University of Salzburg | Centre
for Geoinformatics - Z_GIS Schillerstr.30 | Techno-Z, Block 15, 3rd floor,
Room 320 | 5020 Salzburg, Austria Phone +43 (0)662 8044 5298 | Fax +43
(0)662 8044 5260
> Z_GIS...experts for the spatial view
-----Ursprüngliche Nachricht-----
Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von
Morper-Busch, Lucia
Gesendet: Montag, 05. Dezember 2011 10:43
An: users at openlayers.org
Betreff: [OpenLayers-Users] Openlayers WMSGetFeatureInfo problem with
ArcGISServer WMS
Hello,
has anybody experiences with integrating WMS layers provided by an ArcGIS
Server MapServer into a Openlayers map application?
I managed it to visualize the layer but I get no response from the
WMSgetFeatureInfo request.
With GeoServer WMS from remote Servers there is no problem (using a proxy).
Thank you
Lucia
Dipl.-Geogr. Lucia Morper-Busch | Researcher University of Salzburg | Centre
for Geoinformatics - Z_GIS Schillerstr.30 | Techno-Z, Block 15, 3rd floor,
Room 320 | 5020 Salzburg, Austria Phone +43 (0)662 8044 5298 | Fax +43
(0)662 8044 5260
> Z_GIS...experts for the spatial view
_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
More information about the Users
mailing list