What is the proper way to add CIMPictureGraphic to map? What properties should be set? I tried following code:
<SPAN class="keyword token">var</SPAN> box <SPAN class="operator token">=</SPAN> EnvelopeBuilder<SPAN class="punctuation token">.</SPAN><SPAN class="token function">CreateEnvelope</SPAN><SPAN class="punctuation token">(</SPAN>x <SPAN class="operator token">-</SPAN> <SPAN class="number token">10</SPAN><SPAN class="punctuation token">,</SPAN> y <SPAN class="operator token">-</SPAN> <SPAN class="number token">10</SPAN><SPAN class="punctuation token">,</SPAN> x <SPAN class="operator token">+</SPAN> <SPAN class="number token">10</SPAN><SPAN class="punctuation token">,</SPAN> y <SPAN class="operator token">+</SPAN> <SPAN class="number token">10</SPAN><SPAN class="punctuation token">,</SPAN> SpatialReferences<SPAN class="punctuation token">.</SPAN>WGS84<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">var</SPAN> pictureGraphic <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">CIMPictureGraphic</SPAN>
<SPAN class="punctuation token">{</SPAN>
SourceURL <SPAN class="operator token">=</SPAN> imgPath<SPAN class="punctuation token">,</SPAN>
PictureURL <SPAN class="operator token">=</SPAN> imgPath<SPAN class="punctuation token">,</SPAN>
Box <SPAN class="operator token">=</SPAN> box
<SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">var</SPAN> overlay <SPAN class="operator token">=</SPAN> _mapView<SPAN class="punctuation token">.</SPAN><SPAN class="token function">AddOverlay</SPAN><SPAN class="punctuation token">(</SPAN>pictureGraphic<SPAN class="punctuation token">)</SPAN><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>Image exist on path imgPath, but it is not shown on map.