<?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: add graphic  element to feature layer in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-graphic-nbsp-element-to-feature-layer/m-p/199521#M6261</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Andrew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Have you looked at the documentation for FeatureLayer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/FeatureLayer.html" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/FeatureLayer.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as what you would put for the second and third params of the applyEdits function both would just be null if you are not updating or deleting any features. And it is expecting an Array of graphics not a single graphic object:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;(map.layers[1] as FeatureLayer).applyEdits([map.layers[2].graphicProvider&lt;J&gt;], null, null);&lt;/J&gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't forget to &lt;/SPAN&gt;&lt;STRONG&gt;click the Mark as answer check&lt;/STRONG&gt;&lt;SPAN&gt; on this post and to &lt;/SPAN&gt;&lt;STRONG&gt;click the top arrow (promote)&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Follow the steps &lt;/STRONG&gt;&lt;SPAN&gt;as shown in the below graphic:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://gis.calhouncounty.org/FlexViewer2.5/Answer.jpg"&gt;&lt;IMG src="http://gis.calhouncounty.org/FlexViewer2.5/Answer.jpg" /&gt;&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 May 2012 11:08:23 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2012-05-15T11:08:23Z</dc:date>
    <item>
      <title>add graphic  element to feature layer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-graphic-nbsp-element-to-feature-layer/m-p/199520#M6260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello! I have 2 feature layers. And I want to add graphic element from first layer to second one. But property map.layers&lt;I&gt;.graphicProvider is read-only. So when I'm trying to add graphic like this:&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.layers[1].add(map.layers[2].graphicProvider&lt;J&gt;);&lt;/J&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;nothing happens. GraphicProvider of first layer not changes, so nothing adds to map. First and second layers are identical by all parameters. Is it possible to add graphic element from one layer to another one?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance. And sorry for my poor English.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I need to use applyEdits().Something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.layers[1].applyEdits(map.layers[2].graphicProvider&lt;J&gt;, , );&lt;/J&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But what I need to paste on second and third positions into brackets?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 05:57:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-graphic-nbsp-element-to-feature-layer/m-p/199520#M6260</guid>
      <dc:creator>AndrewIosida</dc:creator>
      <dc:date>2012-05-15T05:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: add graphic  element to feature layer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-graphic-nbsp-element-to-feature-layer/m-p/199521#M6261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Andrew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Have you looked at the documentation for FeatureLayer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/FeatureLayer.html" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/FeatureLayer.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as what you would put for the second and third params of the applyEdits function both would just be null if you are not updating or deleting any features. And it is expecting an Array of graphics not a single graphic object:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;(map.layers[1] as FeatureLayer).applyEdits([map.layers[2].graphicProvider&lt;J&gt;], null, null);&lt;/J&gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't forget to &lt;/SPAN&gt;&lt;STRONG&gt;click the Mark as answer check&lt;/STRONG&gt;&lt;SPAN&gt; on this post and to &lt;/SPAN&gt;&lt;STRONG&gt;click the top arrow (promote)&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Follow the steps &lt;/STRONG&gt;&lt;SPAN&gt;as shown in the below graphic:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://gis.calhouncounty.org/FlexViewer2.5/Answer.jpg"&gt;&lt;IMG src="http://gis.calhouncounty.org/FlexViewer2.5/Answer.jpg" /&gt;&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 11:08:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-graphic-nbsp-element-to-feature-layer/m-p/199521#M6261</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-05-15T11:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: add graphic  element to feature layer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-graphic-nbsp-element-to-feature-layer/m-p/199522#M6262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Robert!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2012 15:11:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-graphic-nbsp-element-to-feature-layer/m-p/199522#M6262</guid>
      <dc:creator>AndrewIosida</dc:creator>
      <dc:date>2012-05-18T15:11:05Z</dc:date>
    </item>
  </channel>
</rss>

