new Cesium.GetFeatureInfoFormat(type, format, callback)

描述从 Web 映射服务( WMS ) 服务器请求 GetFeatureInfo 的格式 .
Name Type Description
type string 从 GetFeatureInfo 请求中期待的响应类型 。 有效 值是“json”、“xml”、“html”或“文本”.
format string optional The info format to request from the WMS server. This is usually a NT 0 类型, 如“ 应用程序/json” 或文本/ xml 。 如果没有指定此参数, 提供者将请求“ json ” 使用“ 应用程序/ json ” 、 “ xml ” 使用“ text/ xml ” 、 “ html ” 使用“ text/ html ” , “ text ” 使用“ text/ plain ” .
callback function optional A function to invoke with the GetFeatureInfo response from the WMS server in order to produce an array of picked ImageryLayerFeatureInfo instances. If this parameter is not specified, 对响应类型使用默认函数.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.