Apply Symbology from REST Endpoint to Portal Item

301
3
12-22-2020 10:11 AM
ZachBodenner
New Contributor III

Hello,

Recently my organization made the switch into an Enterprise Environment. Rolled out the Portal, updates servers, etc. We have a number of web maps and apps for end users, presymboloized and configured. This is accomplished by publishing services from ArcMap or web layers from Pro, then consuming the resulting REST endpoint (and its published symbology - important to the issue) in Portal. The web maps are then shared with groups based on the end users' departments.

However, we want the end users to be able to create their own maps to share within their departments by adding hosted feature layers (so they don't have to go to the REST endpoint itself to add data). We hope to accomplish this through department specific Data Stores. Today we added one department's data to a Data Store, resulting in Map Image Layers and Feature Layers for all the data contained within the .sde geodatabase. 

Here's the issue: I'd like to be able to apply pre-existing symbology from a previously published REST endpoint to a Map Image Layer or Feature Layer (or both). For example: I have a dataset of dozens of layers of engineering infrastructure (water main lines, valvues, etc). It would be tedious to open each map image layer (containing only one of said dozens of layers), apply the symbology appropriate, save the layer, and move on. Is there a way to capture the symbology that is already present in a published REST enpoint and apply it to an item in Portal?

3 Replies
CalvinLietz
Esri Contributor

Hi Zach,

You can modify the symbology of a service through the Visualization tab on the Item Details page of the service. Then, when you bring the service into a new web map or app, you should see the new symbology reflected. For existing web maps and apps that already have the layer configured, you may need to remove and add back the layer to force a refresh for the symbology.

Alternatively, you can use ArcGIS Online Assistant with your Portal organization to go into the Web Map JSON and copy/paste symbology from the REST endpoint, though this method may involve significantly more risk and is technically not a supported workflow.

Good luck!

-Calvin

ZachBodenner
New Contributor III

Unfortunately I don't think that will accomplish what I'm hoping for. The problem is that much of the symbology I want to copy into Portal items was created in ArcMap or Pro, which means it isn't necessarily something I can apply in the Visualization tab.

CalvinLietz
Esri Contributor

Hi Zach,

If there are already map image and feature layers in your Portal organization's content that have the desired symbology, then perhaps you could grant your users access to those layers to add to their own web maps and apps? 

If you really want to go the route of publishing entirely new map image and feature layers through a registered data store item, then you may want to look further into copying the drawingInfo from the REST endpoint of the symbolized service and copy it into the JSON of the new service. Again, this can be done with ArcGIS Online Assistant.

-Calvin