Change style at startup
Hi all,
I created a workflow to run an external command, ResymbolizeLayer
at startup, but I have not idea, to supply gcxLayer parameter to command.
the only explanation from help is :
An object containing a gcxLayer parameter, which is either a Layer or a string giving the layer id and a renderer parameter, which is either an esri.renderer.Renderer object or the JSON string representation of one.
based on this I created this json, but when I refresh the app, it does nothing.
{'gcxLayer':{'mapService':0,'source':{'type':'DynamicFeatureLayer','mapLayerId':0}},'renderer':{"color":[255,255,255,64],"size":12,"angle":121,"xoffset":0,"yoffset":0,"type":"esriSMS","style":"esriSMSCircle","outline":{"color":[0,0,0,255],"width":1,"type":"esriSLS","style":"esriSLSSolid"}}}
I appreciate any help.
-
Any updates on this NABAZ?
0 -
Dear Nabaz,
I was searching on the same topic and I found the way to it
1. Create renderer object by using "Get Renderer From JSON" activity
2. use this parameter line : ={"gcxLayer":'0',"renderer":$renderer2.renderer}
where 0 is your layer ID and $renderer2.renderer is the output of the "Get Renderer From JSON" activity
I hope this will help you
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare