OLLayer::getFeatureInfo
This method sends OGC get-feature requests for this layer to the OGC webservice.
This method generates OGC getFeature / getFeatureInfo requests (depending on its configuration (WFS/WMS), sends if via a restful service to the OGC service and return the response body. This method does not perform a response validation. The parameter for this method needs to be of this structure: For WFS layers: $params = array ('featureID' => string) : OGC ID for the selected feature. For WMS layers: $params = array ( 'BBOX' => 'minx,miny,maxx,maxy' : comma separated list of bbox coordinates 'x': integer : x position of the mouse click (in pixels) 'y': integer : y position of the mouse click (in pixels) 'WIDTH': integer : width of the map-image (in pixels) 'HEIGHT': integer : height of the map-image (in pixels) )
Signature
public function getFeatureInfo(array
$params )
Parameters
$params
— array- array of parameters
Returns
- string
- XML response