<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to upload a style to ArcGIS Online, to be used in the map viewer? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-upload-a-style-to-arcgis-online-to-be-used/m-p/1673566#M74998</link>
    <description>&lt;P&gt;I have the same problem. I want to upload a style file (stylex) as Web-Style int Portal. Do jou have found any solution for your problem&lt;/P&gt;</description>
    <pubDate>Wed, 17 Dec 2025 12:47:52 GMT</pubDate>
    <dc:creator>MichaelNüßlein</dc:creator>
    <dc:date>2025-12-17T12:47:52Z</dc:date>
    <item>
      <title>How to upload a style to ArcGIS Online, to be used in the map viewer?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-upload-a-style-to-arcgis-online-to-be-used/m-p/1598564#M73943</link>
      <description>&lt;P&gt;I would like to upload a style to ArcGIS Online so I can use it in the map viewer when viewing a layer compatible with the style.&lt;/P&gt;&lt;P&gt;What I've done is create a new item with (in case of a style for lines)&lt;/P&gt;&lt;LI-CODE lang="python"&gt;ip = ItemProperties(
  item_type=ItemTypeEnum.STYLE,
  title=...,
  type_keywords=["lineSymbol", "web2d"],
)
...
...add(item_properties=ip, text=style_text)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I've added lineSymbol and web2d because it seems the viewer looks for items with these two type keywords when looking for styles.&lt;/P&gt;&lt;P&gt;style_text is the textual representation of a dictionary that looks like this&lt;/P&gt;&lt;LI-CODE lang="python"&gt;{
    "items": [
        {
            "name": "symbol name",
            "styleName": "style name",
            "symbol": {
                "type": "esriSLS",
                "color": [
                    0,
                    255,
                    0,
                    255
                ],
                "width": 10,
                "style": "esriSLSSolid"
            }
        }
    ],
    "metadata": {
        "styleName": "style name"
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The item is uploaded correctly but it doesn't show in the map viewer in the 'Styles' panel, when I try to change symbol. I think there's something wrong in the style format, but I've found no documentation for it. I'd be nice if there was a JSON Schema.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 16:06:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-upload-a-style-to-arcgis-online-to-be-used/m-p/1598564#M73943</guid>
      <dc:creator>lvgr</dc:creator>
      <dc:date>2025-03-24T16:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload a style to ArcGIS Online, to be used in the map viewer?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-upload-a-style-to-arcgis-online-to-be-used/m-p/1598803#M73947</link>
      <description>&lt;P&gt;Have not used python for this, but have shared a style to AGOL with Pro.&lt;/P&gt;&lt;P&gt;Once the style is in the Org, I opened map in map viewer, highlighted the layer, select "Styles":&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RhettZufelt_0-1742856770975.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/128589i966C53A98AFC691A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RhettZufelt_0-1742856770975.png" alt="RhettZufelt_0-1742856770975.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Click on the Symbol style, then the Basic point (or whatever comes up) arrow, then click on the + sign:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RhettZufelt_1-1742856862741.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/128590iBB4FEFFFA3AF397D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RhettZufelt_1-1742856862741.png" alt="RhettZufelt_1-1742856862741.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This should let you add your new style to the web map, and can then be used for symbology.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 22:55:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-upload-a-style-to-arcgis-online-to-be-used/m-p/1598803#M73947</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2025-03-24T22:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload a style to ArcGIS Online, to be used in the map viewer?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-upload-a-style-to-arcgis-online-to-be-used/m-p/1673566#M74998</link>
      <description>&lt;P&gt;I have the same problem. I want to upload a style file (stylex) as Web-Style int Portal. Do jou have found any solution for your problem&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 12:47:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-upload-a-style-to-arcgis-online-to-be-used/m-p/1673566#M74998</guid>
      <dc:creator>MichaelNüßlein</dc:creator>
      <dc:date>2025-12-17T12:47:52Z</dc:date>
    </item>
  </channel>
</rss>

