AnsweredAssumed Answered

Add CIMPictureGraphic to map

Question asked by maxmaxmaxmaxmax on Mar 27, 2019
Latest reply on Apr 2, 2019 by UHarano-esristaff

What is the proper way to add CIMPictureGraphic to map? What properties should be set? I tried following code:

 

var box = EnvelopeBuilder.CreateEnvelope(x - 10, y - 10, x + 10, y + 10, SpatialReferences.WGS84);

var pictureGraphic = new CIMPictureGraphic
{
    SourceURL = imgPath,
    PictureURL = imgPath,
    Box = box
};

var overlay = _mapView.AddOverlay(pictureGraphic);

 

Image exist on path imgPath, but it is not shown on map.

Outcomes