Select to view content in your preferred language

Feature Report - Drawing

354
2
12-31-2024 10:43 AM
Derrick_Westoby
Emerging Contributor

Short version:   the symbology of my features, set in the Visualization tab of the feature layer (and verified in the JSON on AGOL Assistant), is not being respected in my feature reports when using "drawingInfo:"currentLayer".  

 

Long version: I have a Survey123 survey and feature report template that I've been using for a few years and am in the process of moving over to a new AGOL account.    I have published a new survey to the new account and set up the feature report as well.   After publishing, I set the symbology of the feature layers in the visualization tab:

Derrick_Westoby_0-1735670248426.png

 

And verified the symbology was set in the feature layer's json when viewing in AGOL assistant:

Derrick_Westoby_1-1735670318914.png

 

Now, I'm trying to generate the feature report so that the maps use the symbology set in the feature layer:

Derrick_Westoby_2-1735670376124.png

xc

${#general_notes}${if image_general}

${image_general | size:0:0:660:500}

${location_general | getValue:"y"},${location_general | getValue:"x"}

#${entry_ID_general}

(General Field Notes)

 

${comment_general | appearance:"multiline"}

Reference Map (1:3,000)

${location_general | drawingInfo:" currentLayer"| mapSettings:" 1097530f909f4361b9e07dac53410123":3000| size:175:250:0:0}

 

${/}${/general_notes}

Which is not working as it has in the past:

Derrick_Westoby_3-1735670492560.png

Derrick_Westoby_4-1735670508058.png

 

I'd appreciate any help anyone is able to offer on this minor issue.  Thanks! 

2 Replies
Derrick_Westoby
Emerging Contributor

@JamesTedrick - Are you able to provide some help on this issue, or point me towards a similar problem + resolution? 

0 Kudos
MCostley
Occasional Contributor

Not sure if you've resolved your issue by now, but I was running into the same thing. 

I updated the symbology via the REST endpoint since that is where the report pulls from:

https://developers.arcgis.com/rest/services-reference/online/update-definition-feature-layer/

I ended up having to create an empty layer and symbolizing it as I needed, then pointing the drawingInfo to that layer instead of the Survey123 data that the map references.

A bit of a run around, but for whatever reason the REST endpoint color updates don't seem to stick to Survey123 layers.

0 Kudos