<?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 Spatial Data Server (SDS) support in SFV in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/spatial-data-server-sds-support-in-sfv/m-p/738804#M22207</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have recently upgraded to 10.1 and are looking at the new Spatial Data Server (SDS).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have managed to get it installed and working from arcgis.com webmap, but we are struggeling with getting it to work with SFV (v. 3.0) defined as a Featrure layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is SDS supported by SFV? If so how to specify?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kjetil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Nov 2012 11:16:27 GMT</pubDate>
    <dc:creator>AdneKylleso</dc:creator>
    <dc:date>2012-11-27T11:16:27Z</dc:date>
    <item>
      <title>Spatial Data Server (SDS) support in SFV</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/spatial-data-server-sds-support-in-sfv/m-p/738804#M22207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have recently upgraded to 10.1 and are looking at the new Spatial Data Server (SDS).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have managed to get it installed and working from arcgis.com webmap, but we are struggeling with getting it to work with SFV (v. 3.0) defined as a Featrure layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is SDS supported by SFV? If so how to specify?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kjetil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 11:16:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/spatial-data-server-sds-support-in-sfv/m-p/738804#M22207</guid>
      <dc:creator>AdneKylleso</dc:creator>
      <dc:date>2012-11-27T11:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Data Server (SDS) support in SFV</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/spatial-data-server-sds-support-in-sfv/m-p/738805#M22208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not had any luck. I have a custom widget in the Flex viewer and it does display feature services from SDS, but ironically the main map does not.&amp;nbsp; THe reason for this (as far as I can tell) is that when the main map adds an operational layer, it treats it like a map service, and adds the layer, but not the graphics.&amp;nbsp; My custom widget (and other widgets) interact with the graphics, so they work.&amp;nbsp; you get this strange situation where the legend, custom print widget and TOC all show the layer, but the main map does not.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SDS based layers do work in the Flex API, it's all about how you add them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, for SDS-based layers, something like this works...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var newfl:FeatureLayer = new FeatureLayer(url, proxyURL, .token);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var featgl:GraphicsLayer = new GraphicsLayer();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var featexistingGraphics:ArrayCollection=newfl.graphicProvider as ArrayCollection;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; featgl.renderer = myRenderer; //define elsewhere&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; featgl.visible = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; for each (var featgra:Graphic in featexistingGraphics)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var featnewgra:Graphic = new Graphic();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; featnewgra.geometry = featgra.geometry;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; featnewgra.symbol = featgra.symbol;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; featgl.add(featnewgra);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; featgl.addEventListener(LayerEvent.LOAD, layerLoadComplete);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; map.addLayer(featgl);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;... But this does not...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var newfl:FeatureLayer = new FeatureLayer(url, proxyURL, .token);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;newfl.alpha = 0.5;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;newfl.visible = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;newfl.name = "My Layer";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;newfl.addEventListener(LayerEvent.LOAD, layerLoadComplete);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;previewMap.addLayer(newfl);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know this doesn't help with the SFV.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 19:06:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/spatial-data-server-sds-support-in-sfv/m-p/738805#M22208</guid>
      <dc:creator>ChrisNorth</dc:creator>
      <dc:date>2013-03-22T19:06:08Z</dc:date>
    </item>
  </channel>
</rss>

