Hi All,
I had a question regarding how Layer Styles are saved/applied on AGOL. In short, it looks like you can no longer update a Feature Layers style and have it save to drawingInfo via AGOL. Once the Feature Layer is published, the drawingInfo cannot be updated through the Visualization options and must be exported into ArcGIS Pro and republished with updated symbology.
Example:
This layers styling is Blue transparent solid fill. We want a Red (ff0000) fill at 25% transparency with a dotted outline.
Now in ArcGIS Pro, sign into your portal and load this map through the Catalog -> Portal. The style does load into Pro this way.
Now load it through Add Data -> Data from Path. Load the yourendpoint/FeatureServer/0/ URL. The styling is the base styling and not the styling applied/saved to the layer via the viz tool. If you go to the drawingInfo, the info remains as it was published.
Is there a way to update a Layers styling in AGOL at the FeatureLayer level and not the Map Level (or however it seems to be working now?)
Thanks!
After changing the symbology in the visualization tab, did you "Save" the changes?
R_
Confirm we have tried both the save from layer properties and the save on the top left as indicated. Either save button location triggers "Save Changes" far as I can tell.
I'm baffled that it displays correctly in ArcGIS Pro via the catalogue pane but incorrectly through importing the service endpoint.
Thanks for taking a peek. I was somewhat hopeful it was a pebkac situation.
The data is public and it's just for figuring this out, so our endpoint is Style Testing
Sorry, didn't catch that you are adding from endpoint in your original post.
If you are adding the service end point, it should have the symbology originally published with Pro as modifying in the visualization tab doesn't change the service/endpoint, rather saves that information in the item itself.
If you modify the HFS in the visualization tab and want to see the 'new' symbology in the map, you need to add the 'item' to the map, not the service URL.
Here is a map adding the REST URL (I have already created a new item from it and modified the symbology in the visualization tab, but the URL with have the original symbology):
Then, if I load the 'item' that I modified the symbology in the visualization tab:
R_
Thanks, I did try updating the visualization through adding the layer to a map via endpoint, but there is no option to "save" once updated. I tried save as, but the layers drawingInfo remains blue.
The challenge here is we're not loading this layer back into an AGOL map; the visualization changes used to save to the HFS. We have a custom-code web application that uses ArcGIS Server, Oracle, and the JS Developer SDK that allows the ingestion of Feature Service Endpoints. I have users that develop HFS's via AGOL. These HFS's are then ingested into our product for building work products and conducting analysis.
Our users used to be able to load shapefiles or information from other sources, change the style, then save the layer. That same workflow now will change the style in AGOL and if that layer is used in an AGOL map, the style displays correctly. However, when our application wants to ingest that layer through the FS/0 endpoint, whatever style it was originally uploaded as is displayed, since AGOL never updates the features drawingInfo.
Below is our application loading the endpoint as blue. In AGOL this layer has been visually updated and saved to be Red. It will display Red in an AGOL map and in ArcGIS Pro if loaded from the content pane. If i load this layer via URL, it is blue.
It seems like once an HFS is published, there is no way to update a layers drawingInfo in AGOL; the layer has to be pulled into ArcGIS Pro, extracted/copied, restyled, and completely republished.
Hello
We are having the same problem with AGOL
We do not have access to ArgGIS Pro right now
Any suggetions has to how to update the drawingInfo or how to republish the featureLayer with the visual modifications done from the Visualization tab?
Best
Following for answer, have the same problem. In ArcGIS loos correct, using JS SDK feature layer is blue.