<?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: Raster Layers in Flex Viewer in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/raster-layers-in-flex-viewer/m-p/383071#M10988</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for getting back to me so quickly, it certainly sounds like what I need but&amp;nbsp; I'm a bit unclear as to what you mean by ArcGISDynamicServiceLayer do you mean when I add the URL to the config file I need to change the type or is there something before that that I am missing.&amp;nbsp; Also would you able to give me some examples of how the &lt;EM style="font-size: 12.8000001907349px; color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-weight: normal; text-align: left; text-indent: 0px;"&gt;definitionexpression &lt;/EM&gt;would be written using the information in the attribute table?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2014 14:57:43 GMT</pubDate>
    <dc:creator>MaureenKerr</dc:creator>
    <dc:date>2014-10-16T14:57:43Z</dc:date>
    <item>
      <title>Raster Layers in Flex Viewer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/raster-layers-in-flex-viewer/m-p/383069#M10986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering is there a way to add Raster Datasets to a viewer in the same way that feature layers can be added.&amp;nbsp; So I have 30 jpegs to publish, I would rather that they are all published in 1 Map Service rather than have 30 Map Services but when adding them to the flex viewer I need to have them as separate layers that can be turned on and off, individually zoomed to and transparency adjusted individually as some of the rasters overlap.&amp;nbsp; I know that this can be done with feature layers by changing the type from dynamic to feature and adding the published layer number at the end of the url in the config so I was wondering how I would go about doing the same for separate Raster layers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 13:53:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/raster-layers-in-flex-viewer/m-p/383069#M10986</guid>
      <dc:creator>MaureenKerr</dc:creator>
      <dc:date>2014-10-16T13:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Layers in Flex Viewer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/raster-layers-in-flex-viewer/m-p/383070#M10987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maureen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; FeatureLayer does not support rasters so you can not add them as individual FeatureLayers. You could add an ArcGISDynamicMapServiceLayer and set a &lt;EM style="font-size: 12.8000001907349px; color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-weight: normal; text-align: left; text-indent: 0px;"&gt;definitionexpression &lt;/EM&gt;that would limit the layer to one individual raster in your map service and then repeat for all 30.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 14:02:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/raster-layers-in-flex-viewer/m-p/383070#M10987</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-10-16T14:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Layers in Flex Viewer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/raster-layers-in-flex-viewer/m-p/383071#M10988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for getting back to me so quickly, it certainly sounds like what I need but&amp;nbsp; I'm a bit unclear as to what you mean by ArcGISDynamicServiceLayer do you mean when I add the URL to the config file I need to change the type or is there something before that that I am missing.&amp;nbsp; Also would you able to give me some examples of how the &lt;EM style="font-size: 12.8000001907349px; color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-weight: normal; text-align: left; text-indent: 0px;"&gt;definitionexpression &lt;/EM&gt;would be written using the information in the attribute table?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 14:57:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/raster-layers-in-flex-viewer/m-p/383071#M10988</guid>
      <dc:creator>MaureenKerr</dc:creator>
      <dc:date>2014-10-16T14:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Layers in Flex Viewer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/raster-layers-in-flex-viewer/m-p/383072#M10989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maureen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You would set the type for each of those layers to "dynamic". Here is an example of using a definitionexpression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&amp;lt;layer label="USA Federal Lands-Reservations" 
&amp;nbsp; type="dynamic" visible="false" alpha=".7" showinlegendhiddenlayers="1" visiblelayers="2"
&lt;SPAN&gt;&amp;nbsp; url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://maps1.arcgisonline.com/ArcGIS/rest/services/USA_Federal_Lands/MapServer" rel="nofollow noopener noreferrer" target="_blank"&gt;http://maps1.arcgisonline.com/ArcGIS/rest/services/USA_Federal_Lands/MapServer&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;
&amp;nbsp; &amp;lt;sublayer id="2" definitionexpression="AGBUR = 'BIA'"/&amp;gt;
&amp;lt;/layer&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:38:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/raster-layers-in-flex-viewer/m-p/383072#M10989</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T17:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Layers in Flex Viewer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/raster-layers-in-flex-viewer/m-p/383073#M10990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a million! This is great, 99% what I am looking for, I was just wondering do you know of a way of getting it to zoom to the displayed layer rather than zoom to the whole extent of the webservice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maureen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2014 14:49:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/raster-layers-in-flex-viewer/m-p/383073#M10990</guid>
      <dc:creator>MaureenKerr</dc:creator>
      <dc:date>2014-10-17T14:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Layers in Flex Viewer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/raster-layers-in-flex-viewer/m-p/383074#M10991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maureen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; No that is not going to be possible. The Definition Query does not update or affect the map services extent, so it will always return the original map service extent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad I was able to help, now you can do your part by marking my response as the "Correct Answer". You do this by clicking on the "Correct Answer" link (the one with the little green star) on the reply that answered your question. You will see the "Correct Answer" link if you are looking at the the actual content page and not at the discussion from your inbox or your activity stream.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2014 15:06:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/raster-layers-in-flex-viewer/m-p/383074#M10991</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-10-17T15:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Layers in Flex Viewer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/raster-layers-in-flex-viewer/m-p/383075#M10992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Problem Robert, pity about the zoom to but I'll figure a way around that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2014 15:28:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/raster-layers-in-flex-viewer/m-p/383075#M10992</guid>
      <dc:creator>MaureenKerr</dc:creator>
      <dc:date>2014-10-17T15:28:03Z</dc:date>
    </item>
  </channel>
</rss>

