<?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 Legend Status 404 when chaging Labels on DynamicMapServiceLayer in 3.x in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-status-404-when-chaging-labels-on/m-p/533817#M49769</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When a user changes a label dynamically, the Legend item for that layer disappears from the Legend and an error saying "unable to load /proxy/?&amp;lt;my map service URL&amp;gt;/legend status: 404" appears in the Console (when looking at the F12 Developer Tools pane).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code snippet.&amp;nbsp; What could be causing the legend error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline; "&gt;code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;SPAN style="font-size: small;"&gt;labelClass = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; LabelClass({&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;SPAN style="font-size: small; "&gt; labelExpression: newLabel, &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; "&gt;/* such as [OwnerName] */&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;SPAN style="font-size: small; "&gt; labelPlacement: lPlacement, &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; "&gt;/* such as 'always-horizontal' for polygon */&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;SPAN style="font-size: small; "&gt; symbol: &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; "&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: small; "&gt; TextSymbol()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;});&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;SPAN style="font-size: small; "&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; "&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-size: small; "&gt; drawingOptions = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; "&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: small; "&gt; LayerDrawingOptions();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;drawingOptions.labelingInfo = [labelClass];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;SPAN style="font-size: small; "&gt; drawingOptions.showLabels = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; "&gt;true&lt;/SPAN&gt;&lt;SPAN style="font-size: small; "&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;SPAN style="font-size: small; "&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; "&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-size: small; "&gt; options = [];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;options[lId] = drawingOptions; &lt;SPAN style="color: #008000; font-size: small; font-family: Courier New; "&gt;/*&amp;nbsp;lId =&amp;nbsp;the layer index&amp;nbsp;*/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: courier new,courier,monospace; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;myDynamicLayer.setLayerDrawingOptions(options);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;myDynamicLayer.setVisibleLayers(getVisibleLayers());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;function getVisibleLayers() {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;visiblePoints = [];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: courier new,courier,monospace;"&gt;/* this function finds all the layers&amp;nbsp;that are checked in the layer list and returns an array of layer indexes&amp;nbsp;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small;"&gt;return&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; visiblePoints;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG style="font-family: arial,helvetica,sans-serif; "&gt;Here are the values of the "options" when using the .setLayerDrawingOptions&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;IMG alt="LayerDrawingOptions values - for - myDynamicLayer.setLayerDrawingOptions" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/452999_Esri_GeoNet_DrawingOptions.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jul 2019 22:40:39 GMT</pubDate>
    <dc:creator>LoriEmerson_McCormack</dc:creator>
    <dc:date>2019-07-12T22:40:39Z</dc:date>
    <item>
      <title>Legend Status 404 when chaging Labels on DynamicMapServiceLayer in 3.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-status-404-when-chaging-labels-on/m-p/533817#M49769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When a user changes a label dynamically, the Legend item for that layer disappears from the Legend and an error saying "unable to load /proxy/?&amp;lt;my map service URL&amp;gt;/legend status: 404" appears in the Console (when looking at the F12 Developer Tools pane).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code snippet.&amp;nbsp; What could be causing the legend error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline; "&gt;code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;SPAN style="font-size: small;"&gt;labelClass = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; LabelClass({&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;SPAN style="font-size: small; "&gt; labelExpression: newLabel, &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; "&gt;/* such as [OwnerName] */&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;SPAN style="font-size: small; "&gt; labelPlacement: lPlacement, &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; "&gt;/* such as 'always-horizontal' for polygon */&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;SPAN style="font-size: small; "&gt; symbol: &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; "&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: small; "&gt; TextSymbol()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;});&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;SPAN style="font-size: small; "&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; "&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-size: small; "&gt; drawingOptions = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; "&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: small; "&gt; LayerDrawingOptions();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;drawingOptions.labelingInfo = [labelClass];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;SPAN style="font-size: small; "&gt; drawingOptions.showLabels = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; "&gt;true&lt;/SPAN&gt;&lt;SPAN style="font-size: small; "&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;SPAN style="font-size: small; "&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; "&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-size: small; "&gt; options = [];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;options[lId] = drawingOptions; &lt;SPAN style="color: #008000; font-size: small; font-family: Courier New; "&gt;/*&amp;nbsp;lId =&amp;nbsp;the layer index&amp;nbsp;*/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: courier new,courier,monospace; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;myDynamicLayer.setLayerDrawingOptions(options);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;myDynamicLayer.setVisibleLayers(getVisibleLayers());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;function getVisibleLayers() {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;visiblePoints = [];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: courier new,courier,monospace;"&gt;/* this function finds all the layers&amp;nbsp;that are checked in the layer list and returns an array of layer indexes&amp;nbsp;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small;"&gt;return&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; visiblePoints;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG style="font-family: arial,helvetica,sans-serif; "&gt;Here are the values of the "options" when using the .setLayerDrawingOptions&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;IMG alt="LayerDrawingOptions values - for - myDynamicLayer.setLayerDrawingOptions" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/452999_Esri_GeoNet_DrawingOptions.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2019 22:40:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-status-404-when-chaging-labels-on/m-p/533817#M49769</guid>
      <dc:creator>LoriEmerson_McCormack</dc:creator>
      <dc:date>2019-07-12T22:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Status 404 when chaging Labels on DynamicMapServiceLayer in 3.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-status-404-when-chaging-labels-on/m-p/533818#M49770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you still facing a problem with this? If so, could you share a sample app that reproduces the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2019 20:54:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-status-404-when-chaging-labels-on/m-p/533818#M49770</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2019-08-20T20:54:42Z</dc:date>
    </item>
  </channel>
</rss>

