openlayers:实现WMS GetLegendGraphic示例 main.js index.html package.json WMS支持getLegendGraphic请求。这个例子演示了getLegendUrl方法的使用。 由于图例可以对比例做出响应,因此它会在每次分辨率更改时更新。 main.js import ImageWMS from 'ol/source/ImageWMS.js'; import Map from 'ol/Map.js'; import OSM from 'ol/source/OSM.js'; import