<?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: Legend for Raster in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-for-raster/m-p/512792#M47829</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hmm, is the URL of the raster dataset publicy accessible? &lt;BR /&gt;&lt;BR /&gt;Looking at the &lt;A class="jive-link-external-small" href="https://developers.arcgis.com/en/javascript/jssamples/gp_resultmapservice.html" rel="nofollow" target="_blank"&gt;Geoprocessing with result map service&lt;/A&gt; sample, it looks like raster data can be included in a legend.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help Noah.&amp;nbsp; I figured out that I was needing to define the raster as a ArcGISDynamicServiceLayer instead of a FeatureLayer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jan 2014 17:39:49 GMT</pubDate>
    <dc:creator>StephenFricke</dc:creator>
    <dc:date>2014-01-22T17:39:49Z</dc:date>
    <item>
      <title>Legend for Raster</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-for-raster/m-p/512786#M47823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, I published a raster dataset as a map service.&amp;nbsp; I then want to be able to use this raster in a mobile app, and view it's legend. When I try to view it's legend, I just get a box that says no legend.&amp;nbsp; I am basing my script off of this esri example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://developers.arcgis.com/en/javascript/samples/mobile_soilmap/" rel="nofollow" target="_blank"&gt;http://developers.arcgis.com/en/javascript/samples/mobile_soilmap/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of using the soil survey as the layer to create the legend, I am trying to use a raster of temperature data.&amp;nbsp; When I look at the capabilities of this map service in the ArcGIS server manager, you can not seem to allow feature access, which I think might be the problem.&amp;nbsp; Could anyone let me know how I can create a legend for my raster in this situation?&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 16:50:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-for-raster/m-p/512786#M47823</guid>
      <dc:creator>StephenFricke</dc:creator>
      <dc:date>2014-01-21T16:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Legend for Raster</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-for-raster/m-p/512787#M47824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Peter,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure exactly, but one good thing to check would be the Legend in the Map Service at REST. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The soil survey sample you indicated has a &lt;/SPAN&gt;&lt;A href="http://server.arcgisonline.com/ArcGIS/rest/services/Specialty/Soil_Survey_Map/MapServer/legend"&gt;legend&lt;/A&gt;&lt;SPAN&gt; that is visible at REST. Is this the same for your raster dataset?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Noah&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 20:52:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-for-raster/m-p/512787#M47824</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2014-01-21T20:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Legend for Raster</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-for-raster/m-p/512788#M47825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Peter,&lt;BR /&gt;&lt;BR /&gt;Not sure exactly, but one good thing to check would be the Legend in the Map Service at REST. &lt;BR /&gt;&lt;BR /&gt;The soil survey sample you indicated has a &lt;A href="http://server.arcgisonline.com/ArcGIS/rest/services/Specialty/Soil_Survey_Map/MapServer/legend"&gt;legend&lt;/A&gt; that is visible at REST. Is this the same for your raster dataset?&lt;BR /&gt;&lt;BR /&gt;-Noah&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey Noah,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply.&amp;nbsp; Yes, I am able to view the legend at REST.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 21:00:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-for-raster/m-p/512788#M47825</guid>
      <dc:creator>StephenFricke</dc:creator>
      <dc:date>2014-01-21T21:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Legend for Raster</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-for-raster/m-p/512789#M47826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alright then. And what happens if you swap in your service into a different sample, like the &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jssamples/widget_legend.html"&gt;Legend sample&lt;/A&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you see the Legend now?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 21:03:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-for-raster/m-p/512789#M47826</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2014-01-21T21:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Legend for Raster</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-for-raster/m-p/512790#M47827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Alright then. And what happens if you swap in your service into a different sample, like the &lt;A href="https://developers.arcgis.com/en/javascript/jssamples/widget_legend.html"&gt;Legend sample&lt;/A&gt;?&lt;BR /&gt;&lt;BR /&gt;Can you see the Legend now?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I swapped out both waterbodies and rivers with my raster, and nothing appears in the legend.&amp;nbsp; I think it has something to do with it being a raster dataset, and not a polygon...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 22:04:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-for-raster/m-p/512790#M47827</guid>
      <dc:creator>StephenFricke</dc:creator>
      <dc:date>2014-01-21T22:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Legend for Raster</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-for-raster/m-p/512791#M47828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmm, is the URL of the raster dataset publicy accessible? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking at the &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jssamples/gp_resultmapservice.html"&gt;Geoprocessing with result map service&lt;/A&gt;&lt;SPAN&gt; sample, it looks like raster data can be included in a legend.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 22:36:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-for-raster/m-p/512791#M47828</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2014-01-21T22:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Legend for Raster</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-for-raster/m-p/512792#M47829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hmm, is the URL of the raster dataset publicy accessible? &lt;BR /&gt;&lt;BR /&gt;Looking at the &lt;A class="jive-link-external-small" href="https://developers.arcgis.com/en/javascript/jssamples/gp_resultmapservice.html" rel="nofollow" target="_blank"&gt;Geoprocessing with result map service&lt;/A&gt; sample, it looks like raster data can be included in a legend.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help Noah.&amp;nbsp; I figured out that I was needing to define the raster as a ArcGISDynamicServiceLayer instead of a FeatureLayer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 17:39:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-for-raster/m-p/512792#M47829</guid>
      <dc:creator>StephenFricke</dc:creator>
      <dc:date>2014-01-22T17:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Legend for Raster</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-for-raster/m-p/512793#M47830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No worries, glad to you got it figured out!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 17:41:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-for-raster/m-p/512793#M47830</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2014-01-22T17:41:23Z</dc:date>
    </item>
  </channel>
</rss>

