描述从 Web 地图服务 (WMS) 或 Web 地图切片服务 (WMTS) 服务器请求 GetFeatureInfo 的格式。 Describes the format in which to request GetFeatureInfo from a Web Map Service (WMS) or Web Map Tile Service (WMTS) server.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
type |
string | GetFeatureInfo 请求期望的响应类型。有效值为“json”、“xml”、“html”或“text”。 The type of response to expect from a GetFeatureInfo request. Valid values are 'json', 'xml', 'html', or 'text'. |
format |
string | 可选 optional 从服务器请求的信息格式。这通常是 MIME 类型,例如“application/json”或“text/xml”。如果未指定此参数,则提供程序将使用“application/json”请求“json”,使用“text/xml”请求“xml”,使用“text/html”请求“html”,使用“text/plain”请求“text”。 The info format to request from the server. This is usually a MIME type such as 'application/json' or text/xml'. If this parameter is not specified, the provider will request 'json' using 'application/json', 'xml' using 'text/xml', 'html' using 'text/html', and 'text' using 'text/plain'. |
callback |
function |
可选 optional
使用来自服务器的 GetFeatureInfo 响应调用的函数,以生成选取的数组 A function to invoke with the GetFeatureInfo response from the server in order to produce an array of picked ImageryLayerFeatureInfo 实例。如果未指定此参数,则使用响应类型的默认函数。 instances. If this parameter is not specified, a default function for the type of response is used. |
