openlayers:实现单个WMS GetObjectureInfo请求中按图层名称获取要素
演示在layers格式对象中使用ol/format/WMSGetFeatureInfo选项,该选项允许由单个WMS GetObjectureInfo请求返回的要素按图层名称读取多个图层。
main.js
import WMSGetFeatureInfo from 'ol/format/WMSGetFeatureInfo.js';
fetch('data/wmsgetfeatureinfo/osm-restaurant-hotel.xml'