WMS GetFeatureInfo (Image Layer)——WMS获取要素信息(图像图层)

该示例演示了如何在OpenLayers中通过单击WMS图像图层触发WMS GetFeatureInfo请求,以获取地图上的要素信息。同时,当鼠标悬停在地图上不透明的像素上时,会改变鼠标指针样式。
摘要由CSDN通过智能技术生成

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.
这个例子用来说明在WMS图像图层上单击如何触发WMS的GetFeatureInfo请求。此外,map.forEachLayerAtPixel用来改变鼠标指针当其在地图上一个不透明的像素上停留的时候。

代码:
<!DOCTYPE html>
<html>
  <head>
    <title>WMS GetFeatureInfo (Image Layer)</title>
    <link rel="stylesheet" href="https://openlayers.org/en/v4.2.0/css/ol.css" type="text/css">
    <!-- The line below is only needed for old environments like Internet Explorer and Android 4.x -->
    <script src
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值