<?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 Does the Legend Widget need &amp;amp;amp;quot;Web Access&amp;amp;amp;quot; in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-legend-widget-need-amp-amp-quot-web/m-p/215155#M19920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think I have answered my own question, but as I couldn't find it documented anywhere I thought I'd post for future reference. (feel free to point me to where it is documented if I am wrong)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It appears that if you do not enable "web access" for your map service the legend widget fails.&amp;nbsp; Looking at the Chrome diagnostic, the actual image URL seems to be&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="http://utility.arcgis.com/sharing/tools/legend?soapUrl=http%3A//" rel="nofollow" target="_blank"&gt;http://utility.arcgis.com/sharing/tools/legend?soapUrl=http%3A//&lt;/A&gt;&lt;SPAN&gt;&amp;lt;my domain name&amp;gt;/ArcGIS2/services/locate1/MapServer&amp;amp;returnbytes=true&amp;amp;f=json&amp;amp;callback=dojo.io.script.jsonp_dojoIoScript3._jsonpCallback&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which seems to confirm what I discovered after a lot of grief, no web access, no legend.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ACM&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit- Doh! IT is documented, I just didn't fully understand it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If the layers are version 10 or lower the legend is created using the ArcGIS.com legend service. In order to use the ArcGIS.com legend service your map service needs to be publicly accessible and your application must be able to access ArcGIS.com.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Nov 2011 11:46:26 GMT</pubDate>
    <dc:creator>AdrianMarsden</dc:creator>
    <dc:date>2011-11-22T11:46:26Z</dc:date>
    <item>
      <title>Does the Legend Widget need &amp;amp;quot;Web Access&amp;amp;quot;</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-legend-widget-need-amp-amp-quot-web/m-p/215155#M19920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think I have answered my own question, but as I couldn't find it documented anywhere I thought I'd post for future reference. (feel free to point me to where it is documented if I am wrong)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It appears that if you do not enable "web access" for your map service the legend widget fails.&amp;nbsp; Looking at the Chrome diagnostic, the actual image URL seems to be&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="http://utility.arcgis.com/sharing/tools/legend?soapUrl=http%3A//" rel="nofollow" target="_blank"&gt;http://utility.arcgis.com/sharing/tools/legend?soapUrl=http%3A//&lt;/A&gt;&lt;SPAN&gt;&amp;lt;my domain name&amp;gt;/ArcGIS2/services/locate1/MapServer&amp;amp;returnbytes=true&amp;amp;f=json&amp;amp;callback=dojo.io.script.jsonp_dojoIoScript3._jsonpCallback&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which seems to confirm what I discovered after a lot of grief, no web access, no legend.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ACM&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit- Doh! IT is documented, I just didn't fully understand it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If the layers are version 10 or lower the legend is created using the ArcGIS.com legend service. In order to use the ArcGIS.com legend service your map service needs to be publicly accessible and your application must be able to access ArcGIS.com.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 11:46:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-legend-widget-need-amp-amp-quot-web/m-p/215155#M19920</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2011-11-22T11:46:26Z</dc:date>
    </item>
  </channel>
</rss>

