Merge pull request #872 from marcjansen/wmsgfi-api
WMSGetFeatureInfo API enhancements
This commit is contained in:
@@ -49,23 +49,25 @@ OpenLayers.Control.WMSGetFeatureInfo = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
*/
|
*/
|
||||||
maxFeatures: 10,
|
maxFeatures: 10,
|
||||||
|
|
||||||
/** APIProperty: clickCallback
|
/**
|
||||||
* {String} The click callback to register in the
|
* APIProperty: clickCallback
|
||||||
* {<OpenLayers.Handler.Click>} object created when the hover
|
* {String} The click callback to register in the
|
||||||
* option is set to false. Default is "click".
|
* {<OpenLayers.Handler.Click>} object created when the hover
|
||||||
|
* option is set to false. Default is "click".
|
||||||
*/
|
*/
|
||||||
clickCallback: "click",
|
clickCallback: "click",
|
||||||
|
|
||||||
/** APIProperty: output
|
/**
|
||||||
* {String} Either "features" or "object". When triggering a
|
* APIProperty: output
|
||||||
* getfeatureinfo request should we pass on an array of features
|
* {String} Either "features" or "object". When triggering a getfeatureinfo
|
||||||
* or an object with with a "features" property and other properties
|
* request should we pass on an array of features or an object with with
|
||||||
* (such as the url of the WMS). Default is "features".
|
* a "features" property and other properties (such as the url of the
|
||||||
|
* WMS). Default is "features".
|
||||||
*/
|
*/
|
||||||
output: "features",
|
output: "features",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: layers
|
* APIProperty: layers
|
||||||
* {Array(<OpenLayers.Layer.WMS>)} The layers to query for feature info.
|
* {Array(<OpenLayers.Layer.WMS>)} The layers to query for feature info.
|
||||||
* If omitted, all map WMS layers with a url that matches this <url> or
|
* If omitted, all map WMS layers with a url that matches this <url> or
|
||||||
* <layerUrls> will be considered.
|
* <layerUrls> will be considered.
|
||||||
@@ -73,21 +75,21 @@ OpenLayers.Control.WMSGetFeatureInfo = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
layers: null,
|
layers: null,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: queryVisible
|
* APIProperty: queryVisible
|
||||||
* {Boolean} If true, filter out hidden layers when searching the map for
|
* {Boolean} If true, filter out hidden layers when searching the map for
|
||||||
* layers to query. Default is false.
|
* layers to query. Default is false.
|
||||||
*/
|
*/
|
||||||
queryVisible: false,
|
queryVisible: false,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: url
|
* APIProperty: url
|
||||||
* {String} The URL of the WMS service to use. If not provided, the url
|
* {String} The URL of the WMS service to use. If not provided, the url
|
||||||
* of the first eligible layer will be used.
|
* of the first eligible layer will be used.
|
||||||
*/
|
*/
|
||||||
url: null,
|
url: null,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: layerUrls
|
* APIProperty: layerUrls
|
||||||
* {Array(String)} Optional list of urls for layers that should be queried.
|
* {Array(String)} Optional list of urls for layers that should be queried.
|
||||||
* This can be used when the layer url differs from the url used for
|
* This can be used when the layer url differs from the url used for
|
||||||
* making GetFeatureInfo requests (in the case of a layer using cached
|
* making GetFeatureInfo requests (in the case of a layer using cached
|
||||||
@@ -96,18 +98,18 @@ OpenLayers.Control.WMSGetFeatureInfo = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
layerUrls: null,
|
layerUrls: null,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: infoFormat
|
* APIProperty: infoFormat
|
||||||
* {String} The mimetype to request from the server. If you are using
|
* {String} The mimetype to request from the server. If you are using
|
||||||
* drillDown mode and have multiple servers that do not share a common
|
* drillDown mode and have multiple servers that do not share a common
|
||||||
* infoFormat, you can override the control's infoFormat by providing an
|
* infoFormat, you can override the control's infoFormat by providing an
|
||||||
* INFO_FORMAT parameter in your <OpenLayers.Layer.WMS> instance(s).
|
* INFO_FORMAT parameter in your <OpenLayers.Layer.WMS> instance(s).
|
||||||
*/
|
*/
|
||||||
infoFormat: 'text/html',
|
infoFormat: 'text/html',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: vendorParams
|
* APIProperty: vendorParams
|
||||||
* {Object} Additional parameters that will be added to the request, for
|
* {Object} Additional parameters that will be added to the request, for
|
||||||
* WMS implementations that support them. This could e.g. look like
|
* WMS implementations that support them. This could e.g. look like
|
||||||
* (start code)
|
* (start code)
|
||||||
* {
|
* {
|
||||||
* radius: 5
|
* radius: 5
|
||||||
@@ -117,14 +119,14 @@ OpenLayers.Control.WMSGetFeatureInfo = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
vendorParams: {},
|
vendorParams: {},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: format
|
* APIProperty: format
|
||||||
* {<OpenLayers.Format>} A format for parsing GetFeatureInfo responses.
|
* {<OpenLayers.Format>} A format for parsing GetFeatureInfo responses.
|
||||||
* Default is <OpenLayers.Format.WMSGetFeatureInfo>.
|
* Default is <OpenLayers.Format.WMSGetFeatureInfo>.
|
||||||
*/
|
*/
|
||||||
format: null,
|
format: null,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: formatOptions
|
* APIProperty: formatOptions
|
||||||
* {Object} Optional properties to set on the format (if one is not provided
|
* {Object} Optional properties to set on the format (if one is not provided
|
||||||
* in the <format> property.
|
* in the <format> property.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user