I'm trying to use a string variable within a image tag that then adds a symbol to the layer control in Leaflet.
I'm having trouble with the whole use of single/double quotes and concatenating the variable. Does anyone have experience of this issue.
var legendUrl = 'https://maps.dartmoor.gov.uk/geoserver/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER='
overlays = {
"<img align=top src = ""'"+legendUrl+"'""hta:sssi'/> SSSI":'hta:sssi'
"<img align=top src = 'http://maps.dartmoor.gov.uk/geoserver/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=general:tpo_area'/> TPO Areas":'general:tpo_area'
};