Can layer styles be used as the layer's default symbolization?
I added a layer style to a dynamic layer by entering the JSON for a ArcGIS renderer on the Style tab. The style can be chosen by users in the HTML5 viewer now. However, it would be nice if this style can be used as the default style for this layer so that users do not have to manually change the style in the viewer. Is there a way to set a style configured in Manager as the default style?
0
-
Would like a solution as well 0 -
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 -
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 -
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 -
@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 -
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 -
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 -
Hwa, I also would like to look into this.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
8 kommentarer