<?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 define per request modification of layer order and symbology using ArcPy? in ArcGIS Server with JavaScript API Questions</title>
    <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/define-per-request-modification-of-layer-order-and/m-p/775139#M129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My web app will (hopefully) use dynamic layers with symbols that are rendered dynamically, based on a user chosen attribute.&amp;nbsp; So far I am doing this by defining a UniqueValueRenderer, then passing these properties to a layer with LayerDrawingOptions.&amp;nbsp; My work so far is loosely based on &lt;A href="https://developers.arcgis.com/javascript/3/jssamples/renderer_dynamic_layer_change_attribute.html"&gt;this example&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I periodically add new layers to the map and then re-publish them with a Python script using ArcPy.&amp;nbsp; As far as I know, ArcPy does not provide a way to overwrite an existing map service (please correct me if I am wrong! )&amp;nbsp; So instead, I delete, then publish, the map service from scratch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here is my issue: to allow dynamic symbol rendering in my map services, I need to enable per request modification of the services, which I can do in Manager for the services on that server.&amp;nbsp; But, I have not found a way to do this with ArcPy.&amp;nbsp; &amp;nbsp;Once the map services are re-published, as of now I need to then log into Manger and manually check the 'allow modification' checkbox, and also re-register the file gdb as a dynamic workspace.&amp;nbsp; I have several map services in this app that need to redner symbols dynamically.&lt;BR /&gt;&lt;BR /&gt;I'd appreciate any ideas, thanks. (image below is from ArcGIS Server Manager, 'Capabilities' tab...as far as I can tell, this option is not available either when manually publishing a layer, or with ArcPy)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/402777_Capture.PNG" style="width: 620px; height: 144px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Apr 2018 12:43:55 GMT</pubDate>
    <dc:creator>deleted-user-3QvhwBivZdaR</dc:creator>
    <dc:date>2018-04-24T12:43:55Z</dc:date>
    <item>
      <title>define per request modification of layer order and symbology using ArcPy?</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/define-per-request-modification-of-layer-order-and/m-p/775139#M129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My web app will (hopefully) use dynamic layers with symbols that are rendered dynamically, based on a user chosen attribute.&amp;nbsp; So far I am doing this by defining a UniqueValueRenderer, then passing these properties to a layer with LayerDrawingOptions.&amp;nbsp; My work so far is loosely based on &lt;A href="https://developers.arcgis.com/javascript/3/jssamples/renderer_dynamic_layer_change_attribute.html"&gt;this example&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I periodically add new layers to the map and then re-publish them with a Python script using ArcPy.&amp;nbsp; As far as I know, ArcPy does not provide a way to overwrite an existing map service (please correct me if I am wrong! )&amp;nbsp; So instead, I delete, then publish, the map service from scratch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here is my issue: to allow dynamic symbol rendering in my map services, I need to enable per request modification of the services, which I can do in Manager for the services on that server.&amp;nbsp; But, I have not found a way to do this with ArcPy.&amp;nbsp; &amp;nbsp;Once the map services are re-published, as of now I need to then log into Manger and manually check the 'allow modification' checkbox, and also re-register the file gdb as a dynamic workspace.&amp;nbsp; I have several map services in this app that need to redner symbols dynamically.&lt;BR /&gt;&lt;BR /&gt;I'd appreciate any ideas, thanks. (image below is from ArcGIS Server Manager, 'Capabilities' tab...as far as I can tell, this option is not available either when manually publishing a layer, or with ArcPy)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/402777_Capture.PNG" style="width: 620px; height: 144px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 12:43:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/define-per-request-modification-of-layer-order-and/m-p/775139#M129</guid>
      <dc:creator>deleted-user-3QvhwBivZdaR</dc:creator>
      <dc:date>2018-04-24T12:43:55Z</dc:date>
    </item>
  </channel>
</rss>

