Hi there,
I've been trying to follow the instructions on this post:
A New Way To Add Web Styles in Map Viewer (esri.com) (@RussRoberts)
First of all, thanks for this. A great improvement to the web style workflow.
However, I've had some trouble, and I hope you are able to help. I cannot see my published web style in the list when I get to the "Added Styles" step in the map viewer.
I've cleaned all symbol names and keys in my stylx file i.e. there are no odd characters. I just can't see it when I go to add the style like you've described above.
Note: I can see them when I add the item to the Organisation's 2D symbol group configured in the Orgs Map settings, so I know they work okay >> This post is not about how to add them to the Organisation 2D symbol group, but how to add them to a web map like shown in the blog post above.
Do you have any tips on how to get it to show up as you've shown above? I'd like to use this alternative "Draft" workflow more (once I get it working)
- The symbols are point symbols using PNG but I've also tried SVG with the same result.
Any help much appreciated
Thanks!
Solved! Go to Solution.
Thanks, I think the issue will be the version of Pro. At that time there was no client consuming web styles of different geometries. When Map Viewer brought in support for point lines and polygons we required a special flag on the item to help the symbol styler know when to show a symbol gallery and when not too. ArcGIS Pro 3.0 started writing this out and we use these same flags when searching for compatible webstyles for the geometry being styled.
So your style has these typeKeywords
typeKeywords: ["ArcGIS Pro", "Platform", "Style", "Symbology", "Symbols", "web2d"]
It looks like your style covers points, lines and polygons so you can either republish with a 3.x version of Pro or you can use ago-assistant and from there you can view the itemdetail JSON and add under the typeKeyword section the words we use as a flag.
"lineSymbol", "pointSymbol", "polygonSymbol"
I added a version of the web style to the group and you should be able to see it now with the Add Styles.
If you can share that web style with me I can take a look(you can invite russell_jsapi into a group with the styles). What version of Pro are these being published with?
We do hide web styles in the add dialog if they are
- Already added through the add workflow and exist under Add Styles
- Added through the org group - Displayed under Vector Symbols
- No symbols in the style are present with the geometry being styled
Hi Russell,
Thanks for getting back so soon.
I am using Pro 2.9.1
I've added you to a group with the published Stylx and Web style item.
Thanks for helping to troubleshoot this.
Thanks, I think the issue will be the version of Pro. At that time there was no client consuming web styles of different geometries. When Map Viewer brought in support for point lines and polygons we required a special flag on the item to help the symbol styler know when to show a symbol gallery and when not too. ArcGIS Pro 3.0 started writing this out and we use these same flags when searching for compatible webstyles for the geometry being styled.
So your style has these typeKeywords
typeKeywords: ["ArcGIS Pro", "Platform", "Style", "Symbology", "Symbols", "web2d"]
It looks like your style covers points, lines and polygons so you can either republish with a 3.x version of Pro or you can use ago-assistant and from there you can view the itemdetail JSON and add under the typeKeyword section the words we use as a flag.
"lineSymbol", "pointSymbol", "polygonSymbol"
I added a version of the web style to the group and you should be able to see it now with the Add Styles.
Thanks! we are looking to upgrade soon, but until then I will try out the AGOL assistant workflow and let you know how I get on.
It all makes sense too, thank you for the explanation/background, its good know it's happening for a reason and we have a way forwards
I can confirm the AGOL Assistant Workflow works great, we are up and running.
To summarise for the post string. We were publishing the Web Style from ArcGIS Pro 2.9.1, this was the cause of the style not showing up under the "Add Style" tool in Map Viewer.
I've marked the "solution" above.
@RussRoberts thank you for your help with this! Much appreciated.