Hello,
is it possible to use image sprite's images as icon for FeatureLayer's features? And if so can someone help me how?
I have my image sprite loaded in my style.css
<SPAN class="selector token">.imageSprite</SPAN> <SPAN class="punctuation token">{</SPAN>
<SPAN class="property token">background-image</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="url token">url('images/custom-icons.png')</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="property token">background-repeat</SPAN><SPAN class="punctuation token">:</SPAN> no-repeat<SPAN class="punctuation token">;</SPAN>
<SPAN class="property token">width</SPAN><SPAN class="punctuation token">:</SPAN> 42px<SPAN class="punctuation token">;</SPAN>
<SPAN class="property token">height</SPAN><SPAN class="punctuation token">:</SPAN> 49px<SPAN class="punctuation token">;</SPAN>
<SPAN class="property token">text-align</SPAN><SPAN class="punctuation token">:</SPAN> center<SPAN class="punctuation token">;</SPAN>
<SPAN class="punctuation token">}</SPAN>
<SPAN class="selector token">.imageSpriteCam</SPAN> <SPAN class="punctuation token">{</SPAN>
<SPAN class="property token">background-position</SPAN><SPAN class="punctuation token">:</SPAN> 0px,0px
<SPAN class="punctuation token">}</SPAN>
<SPAN class="selector token">.imageSpriteCluster</SPAN> <SPAN class="punctuation token">{</SPAN>
<SPAN class="property token">background-position</SPAN><SPAN class="punctuation token">:</SPAN> 42px,0px
<SPAN class="punctuation token">}</SPAN>
<SPAN class="selector token">.imageSpriteCrash</SPAN> <SPAN class="punctuation token">{</SPAN>
<SPAN class="property token">background-position</SPAN><SPAN class="punctuation token">:</SPAN> 0px,49px
<SPAN class="punctuation token">}</SPAN>
<SPAN class="selector token">.imageSpriteCrossroad</SPAN> <SPAN class="punctuation token">{</SPAN>
<SPAN class="property token">background-position</SPAN><SPAN class="punctuation token">:</SPAN> 0px,98px
<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></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>My FL is made from Feature Collection but when I would use PictureMarkerSymbol as icon there is no style attribute or something like this. So I don't know how to use it if it's even possible.
Thanks for help.