collective / collective.geo.wms

Embed WMS, TMS and WMTS layers in your website.
4 stars 1 forks source link

Add Legends #4

Open cleder opened 10 years ago

cleder commented 10 years ago

wms getCapabilities returns the legend url so it should be easy enough to add legends for layers:

image/png
cleder commented 10 years ago
<LegendURL width="20" height="20">
      <Format>image/png</Format>
      <OnlineResource xlink:type="simple" xlink:href="http://geonode.iwlearn.org:80/geoserver/wms?request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=Albania_Industry"/>
 </LegendURL>