This example shows how to trigger WMS GetFeatureInfo requests on click for a WMS image layer.
Additionally map.forEachLayerAtPixel
is used to change the mouse
pointer when hovering a non-transparent pixel on the map.
See the getfeatureinfo-image.js source to see how this is done.