<?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: Refresh map or layer in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/refresh-map-or-layer/m-p/678110#M15221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Horia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Since Flex is dead I assume you posted in the wrong space and you are actually talking about JS api. If that is the case and it is the 4.x API you are talking about then you need to remove the graphic from the layer and re add it to get geometry updates to show.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Mar 2019 16:52:17 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2019-03-12T16:52:17Z</dc:date>
    <item>
      <title>Refresh map or layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/refresh-map-or-layer/m-p/678105#M15216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am modifying a widget in ARCGIS Flex Viewer using Flash Builder. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As part of a ARCGIS Server Flex application I change a feature attribute of an arcsde layer using an sql (coldfusion) and that feature attribute determines how lines are colored in the operational layer as the service is generated from a single layer project (mxd) . I'm having no problem changing that attribute in the coding, I use a coldfusion sql.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I change the attribute and then manually pan or zoom (even slightly) the color change of the line is shown, works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I use map.zoomIn that works also and the line color changes, (the modifications of the underlying sde operational layer or the service are displayed).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All I want to do is refresh the entire map as would happen with a zoom or pan but I dont want to zoom or pan, just refresh.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd be happy just refreshing the layer.&amp;nbsp; I only have 2 operational layers so I guess I could get one from an index of the layer list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I read somewhere that map.refresh() doesnt work and&amp;nbsp; I need to use layer.refresh().&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought this was going to be one of the most simple and basic things but I'm having real difficulties finding an example of it for some reason.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just want to refresh the map or layer without manually panning or zooming.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David Racca&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;University of Delaware&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 20:25:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/refresh-map-or-layer/m-p/678105#M15216</guid>
      <dc:creator>davidracca</dc:creator>
      <dc:date>2012-01-27T20:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh map or layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/refresh-map-or-layer/m-p/678106#M15217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;David,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; So try something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;map.getLayer("The name/id of your layer").refresh();&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 20:36:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/refresh-map-or-layer/m-p/678106#M15217</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-01-27T20:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh map or layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/refresh-map-or-layer/m-p/678107#M15218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yes, that's just what I was looking for, thanks very much Mr.Scheitlin. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks also for all of your many post to other users that have helped in the past&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 12:22:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/refresh-map-or-layer/m-p/678107#M15218</guid>
      <dc:creator>davidracca</dc:creator>
      <dc:date>2012-01-30T12:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh map or layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/refresh-map-or-layer/m-p/678108#M15219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dave,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Glad you got it working. Don't forget to click the top arrow (promote) and to click the Mark as answer check as shown below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;IMG src="http://gis.calhouncounty.org/FlexViewer2.5/Answer.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 12:25:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/refresh-map-or-layer/m-p/678108#M15219</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-01-30T12:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh map or layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/refresh-map-or-layer/m-p/678109#M15220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see refreshing the layer - alright, however, the feature geometry I've just changed does not show in another position until I zoom in (and out.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2019 16:41:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/refresh-map-or-layer/m-p/678109#M15220</guid>
      <dc:creator>HoriaTudosie</dc:creator>
      <dc:date>2019-03-12T16:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh map or layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/refresh-map-or-layer/m-p/678110#M15221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Horia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Since Flex is dead I assume you posted in the wrong space and you are actually talking about JS api. If that is the case and it is the 4.x API you are talking about then you need to remove the graphic from the layer and re add it to get geometry updates to show.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2019 16:52:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/refresh-map-or-layer/m-p/678110#M15221</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-03-12T16:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh map or layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/refresh-map-or-layer/m-p/678111#M15222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, is about JsApi - but 3.x&lt;/P&gt;&lt;P&gt;This is the closest post I've found related to my issue.&lt;/P&gt;&lt;P&gt;Is not about a Graphic in a graphic layer, but the geometry of a feature.&lt;/P&gt;&lt;P&gt;I've found in the mean time a solution, which seems to work well:&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal;"&gt;&lt;DIV&gt;&lt;SPAN&gt;feature&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;_layer.&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;suspend&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;feature&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;geometry&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;update&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;centroid&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;x&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;centroid&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;y&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal;"&gt;&lt;DIV&gt;&lt;SPAN&gt;feature&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;_layer&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;resume&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;feature._layer.refresh() however does nothing!&lt;/P&gt;&lt;P&gt;for the graphic in the graphic layer, the suggested solution works well:&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;const&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;selectedAddress&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;_getMarker&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"selectedAddress"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;selectedAddress&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;geometry&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;centroid&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;map&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;graphics&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;refresh&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tx, for your reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2019 04:33:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/refresh-map-or-layer/m-p/678111#M15222</guid>
      <dc:creator>HoriaTudosie</dc:creator>
      <dc:date>2019-03-13T04:33:44Z</dc:date>
    </item>
  </channel>
</rss>

