Runtime 100.1 qml PictureMarkerSymbol as selection symbol

Discussion created by geokeys on Jan 27, 2018
Latest reply on Mar 28, 2018 by geokeys

Hi all,


I'm migrating an app from 10.2.6 runtime version to 100.1.

Core question, I'm having some troubles using PictureMarkerSymbol as Graphic selection symbol in a GraphicsLayer

In 10.2.6 to select a Graphic object, in onFindGraphicsComplete, I used


and to assign it a new selection symbol I set

GraphicsLayer {
   id: merchantLayer

       selectionSymbol: defaultSelectionSymbo //this is a PictureMarkerSymbol!!!

It works fine.
Now, with 100.1, there's no more  GraphicsOverlay.selectionSymbol. There's only selectionColor.

I'm trying this way, select the Graphics like this

onIdentifyGraphicsOverlayStatusChanged: {[0].selected=true;

and set onSelectedChanged() in each Graphics object to intercept the selection status change
and perform the substitution of Graphic renderer.
Before moving on, do you think this is the right solution?
If it is so, my Graphics object is dinamically built like this
for (var i = 0; i<features.length; i++){
   var merchantGeometry = ArcGISRuntimeEnvironment.createObject("Point",  {"json": features[i].geometry});
   var attributes = features[i].attributes;
   var merchantGraphic = ArcGISRuntimeEnvironment.createObject("Graphic", { geometry: merchantGeometry })
   merchantGraphic.attributes.attributesJson = attributes;
   //HELP! Here I'm not able to set onSelectedChanged
How can I do somethig like this qml:
    merchantGraphic.onSelectedChanged: {


       console.log ("selected status changed. Change graphic's renderer")  




Minor question, the AppStudio 2.1.19 downloaded doesn't have the latest runtime 100.2, do I have to install something else?


THANK YOU for your attention.