openlayers
Version:
Build tools and sources for developing OpenLayers based mapping applications
11 lines (10 loc) • 481 B
HTML
layout: example.html
title: WMS GetFeatureInfo (Image Layer)
shortdesc: Using an image WMS source with GetFeatureInfo requests
docs: >
This example shows how to trigger WMS GetFeatureInfo requests on click for a WMS image layer. Additionally <code>map.forEachLayerAtPixel</code> is used to change the mouse pointer when hovering a non-transparent pixel on the map.
tags: "getfeatureinfo, forEachLayerAtPixel"
<div id="map" class="map"></div>
<div id="info"> </div>