Is it possible to add an URL image to an attribute Expression?
I want the text to be follow by a specific image based on the field value. I can get the text to change with no issues but want to add a specific image
function symbol<SPAN class="punctuation token">(</SPAN>feature<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">{</SPAN>
image1 <SPAN class="operator token">=</SPAN> <SPAN class="string token">"https://img.icons8.com/color/search/96 "</SPAN>
image2 <SPAN class="operator token">=</SPAN> <SPAN class="string token">"https://img.icons8.com/color/search/96 "</SPAN>
var display <SPAN class="operator token">=</SPAN> When<SPAN class="punctuation token">(</SPAN>feature <SPAN class="operator token">==</SPAN> <SPAN class="number token">1</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'Permittee'</SPAN> <SPAN class="operator token">+</SPAN> image1<SPAN class="punctuation token">,</SPAN> feature <SPAN class="operator token">==</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'Trap'</SPAN> <SPAN class="operator token">+</SPAN> image2<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'n/a'</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">return</SPAN> display
<SPAN class="punctuation token">}</SPAN>
symbol<SPAN class="punctuation token">(</SPAN>$feature<SPAN class="punctuation token">.</SPAN>LOK<SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>