CloudMade/Leaflet — Issue #412: Feature request: additional WMS option for legend images
Author: robertharm
Created: 2011-12-31 16:00:54+00:00
State: open

I will use Leaflets WMS feature for my WordPress plugin mapsmarker.com and also added WMS layers from the EEA (European Environment Agency) as default, which works fine - see http://current.mapsmarker.com/?p=111 for examle. I only have a problem with usability, as I can add the legend of the WMS layer (which is in case of the EEA an image like http://discomap.eea.europa.eu/ArcGIS/services/Land/CLC2000_Cach_WM/MapServer/WMSServer?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26layer=11) only as a text link in attribution. I tried to insert the legend image with ImageOverlay but this does not really work as you can´t position it in the bottom right corner of the map.

It would be great if the option "legend" could be added to L.TileLayer.WMS. Here users should be able to define an image which then gets displayed in the bottom right corner of the map - I made a screenshot how it should look like: http://www.mapsmarker.com/wp-content/uploads/wms-legend.jpg