Select to view content in your preferred language

Hosted feature layer view symbology update

906
9
Jump to solution
03-27-2024 07:23 AM
mshanaghan
Frequent Contributor

I overwrote a hosted feature layer from Pro because I wanted to use updated custom symbology from Pro. The layer overwrote fine and the symbology looked great.

I expected the hosted feature layer view of this layer to inherit the updated symbology, but it did not. I went to the view's settings and clicked "Update View", but the symbology did not update. 

I cannot change the symbology in the view's web map because this is a custom symbol that is not available on the portal. 

Is my only option to create a new view of this overwritten layer? 

1 Solution

Accepted Solutions
Laura
by MVP Regular Contributor
MVP Regular Contributor

Yes you will have to recreate it or open the view layer in Pro and symbolize it that way since that view layer is technically independent. There are scripts you could probably find do to this as well.

"However, because the view is a separate item, you can change properties and settings on the view item separately from the hosted feature layer item from which it is created. " - Esri

View solution in original post

9 Replies
Laura
by MVP Regular Contributor
MVP Regular Contributor

Yes you will have to recreate it or open the view layer in Pro and symbolize it that way since that view layer is technically independent. There are scripts you could probably find do to this as well.

"However, because the view is a separate item, you can change properties and settings on the view item separately from the hosted feature layer item from which it is created. " - Esri

Koen
by Esri Contributor
Esri Contributor

Hey @Laura could you possibly share the documentation as well :)? 

0 Kudos
Laura
by MVP Regular Contributor
MVP Regular Contributor

What links are you looking for beyond what I shared below?

0 Kudos
AnaisSchaenzel
Esri Contributor

@Laura what version of Enterprise was this feature added?

I am attempting to update symbology of a hosted views on Enterprise 11.1 using the method you have mentioned (from ArcGIS Pro), however it does not seem to save these changes to the view in portal.

0 Kudos
Laura
by MVP Regular Contributor
MVP Regular Contributor

Looks like the Save web layer tool is available in ArcPro 3.2 and beyond. 

https://pro.arcgis.com/en/pro-app/3.2/help/sharing/overview/save-a-web-feature-layer.htm

0 Kudos
vnixon
by
Occasional Contributor

We overwrote an AGOL feature service that is the parent of a view. We tried to use 'Update View', but noticed that our view's symbology got set to black. We tried setting the symbology color for the view in the Visualization tab, but the symbology color remains black in the view's REST service so it appears black in all of the apps that display that layer. I read above that it is recommended that we delete and recreate the view to get this color setting to appear, however, we cannot risk changing the URL on this service as it is hard-coded into apps we cannot edit. Is there a workflow you can think of to achieve this color change with the existing view without changing its URL? Thanks for ideas. 

0 Kudos
Laura
by MVP Regular Contributor
MVP Regular Contributor

You can just change the symbology within the map you are working with. Or is it not letting you do that?

You can also bring your view layer into Pro and then save the web layer.

Here is what my view layer looked like in the map to begin with:

Laura_3-1737037420844.png

After editing in Pro and saving as a web layer it now looks like this:

Laura_4-1737037449834.png

Right click on the layer in Pro - Sharing - Save web layer

https://pro.arcgis.com/en/pro-app/latest/help/sharing/overview/save-a-web-feature-layer.htm

If you're nervous about something breaking I would try this out in a copy of your application and use a test environment. 

0 Kudos
vnixon
by
Occasional Contributor

Thanks so much Laura, this is good to know. We're also in a tricky situation where a 3rd party is using our View service in their application and they need to display the right color (not black). They don't have the technical ability to set the color within their application so we were hoping our REST service would dictate the color. They also don't have the ability to sub in new URLs so we were hoping to avoid deleting and recreating the View as this would create a new URL I believe.

0 Kudos
Laura
by MVP Regular Contributor
MVP Regular Contributor

By URL are we talking this Item ID in the URL?

Laura_0-1737040899461.png

When I used the save web layer tool that part of the URL was unchanged!

0 Kudos