Hi,
I have got symbol url from layer legend. It looks like:
"image://arcgisruntimeimageprovider/67f53ba9-10bd-4bc9-a602-3356b685c9f6/image"
It works if I use that URL for Image control source property in dialog.
I have tried to create PictureMarkerSymbol like in code below:
var pictureMarker = ArcGISRuntimeEnvironment.createObject("PictureMarkerSymbol", {
width: 32,
height: 32,
offsetY: 16
});
pictureMarker.url = symbolUrl
var graphic = ArcGISRuntimeEnvironment.createObject("Graphic", {
geometry: currentLocation})
reportGraphicsOverlay.graphics.append(graphic)
If I use local url as "../images/pin.png" it works fine.
Solved! Go to Solution.
Hi @GKmieliauskas. Sorry for the delay.
The image:// scheme images used by the LegendInfoListModel are temporary, in-memory images that are designed to be displayed in UI controls. However, there is another way to do this.
Using the same LegendInfoListModel, you can access each LegendInfo, which all have their own symbol property you can use with a graphic directly.
Let us know if that works for you.
Hi @GKmieliauskas. Sorry for the delay.
The image:// scheme images used by the LegendInfoListModel are temporary, in-memory images that are designed to be displayed in UI controls. However, there is another way to do this.
Using the same LegendInfoListModel, you can access each LegendInfo, which all have their own symbol property you can use with a graphic directly.
Let us know if that works for you.
Thank you. It works,