Skip to main content

Can layer styles be used as the layer's default symbolization?

Comments

8 comments

  • Ting Lin
    Would like a solution as well
    0
  • Zack Robison
    I once wrote a workflow to do this using viewer commands and, I think?, a json config, but we needed to mod the viewer's js to make it work.  The command to set visualization didn't take enough parameters for me to make it happen, but it didn't take much code IIRC.  A few params needed to be added to a couple of functions and away we went.
    0
  • Richard Diaz
    You can just place the style that you wish to be used by default by placing the JSON renderer syntax in the Dynamic Definition window as shown below.  This will over-ride the ArcGIS Server REST symbology and be used at runtime.

     

    Cheers...Rick

     

    _img_ alt="Overide ArcGIS REST symbology with Dynamic Definition" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=907f2000000kANv&feoid=Body&refid=0EMf2000000fyso" _/_img_
    0
  • Kari Randall-Secrest
    Is there anyway to export a layer style from ArcMap or Pro to JSON so it can be cut and pasted into the Dynamic Definition box?
    0
  • Hwa Saup Lee
    @Richard Diaz 

     

    I know it is a couple years old post.  But how can I set the dynamic definition with the renderer?  I have a renderer JSON for the styles but I want to use it as a default symbol.  I am not sure how.  where can I find the dynamic definition window?  Is it in the REST manager?  
    0
  • Richard Diaz
    Hwa, I attached an image of the LA County Sample site that ships with Geocortex Essentials. I recommend copying the Sample Sites/LA_County folder to your Sites directory as it contains a wealth of examples that you can learn from. In order to create a Style, your Mapservice must be configured as a Dynamic Layer. Then you will see the Styles tab presented in Essentials manager. Cheers...Rick
    0
  • Hwa Saup Lee
    Hi. Richard,  Thanks for the reply.  I know how to add the style in the Style tab.  What I need is how to set the new style as a default symbol so the user doesn't need to change.  In your post, you mentioned, "You can just place the style that you wish to be used by default by placing the JSON renderer syntax in the Dynamic Definition window as shown below".  I am not sure how to set the style as a default symbol. 

     

     
    0
  • Steffen Helgerod

    Hwa, I also would like to look into this.

    0

Please sign in to leave a comment.