<?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 MapView.graphicsOverlays.add does not update the UI in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-graphicsoverlays-add-does-not-update-the/m-p/1240234#M5922</link>
    <description>&lt;P&gt;I am adding a new GraphicOverlay to my map using `mapView.graphicsOverlays.add` but it does not update the UI. Once you move or tap the map it refreshes and the new graphics are shown.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case I am drawing a polygone.&lt;/P&gt;&lt;P&gt;Is there anything that I am missing?&lt;/P&gt;</description>
    <pubDate>Mon, 12 Dec 2022 17:22:29 GMT</pubDate>
    <dc:creator>JulianBissekkou</dc:creator>
    <dc:date>2022-12-12T17:22:29Z</dc:date>
    <item>
      <title>MapView.graphicsOverlays.add does not update the UI</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-graphicsoverlays-add-does-not-update-the/m-p/1240234#M5922</link>
      <description>&lt;P&gt;I am adding a new GraphicOverlay to my map using `mapView.graphicsOverlays.add` but it does not update the UI. Once you move or tap the map it refreshes and the new graphics are shown.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case I am drawing a polygone.&lt;/P&gt;&lt;P&gt;Is there anything that I am missing?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 17:22:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-graphicsoverlays-add-does-not-update-the/m-p/1240234#M5922</guid>
      <dc:creator>JulianBissekkou</dc:creator>
      <dc:date>2022-12-12T17:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: MapView.graphicsOverlays.add does not update the UI</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-graphicsoverlays-add-does-not-update-the/m-p/1240825#M5931</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Can you share any sample code on when &amp;amp; how the graphicsOverlay being added?&lt;BR /&gt;Or&lt;BR /&gt;We have many samples adding graphics to graphicsOverlay, may be you can tweak one of those to showcase your workflow to reproduce the problem and share it here&lt;BR /&gt;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-android" target="_blank"&gt;https://github.com/Esri/arcgis-runtime-samples-android&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Rama&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 22:08:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-graphicsoverlays-add-does-not-update-the/m-p/1240825#M5931</guid>
      <dc:creator>RamaChintapalli</dc:creator>
      <dc:date>2022-12-13T22:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: MapView.graphicsOverlays.add does not update the UI</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-graphicsoverlays-add-does-not-update-the/m-p/1241167#M5934</link>
      <description>&lt;P&gt;Refreshing the viewpoint works as a workaround:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;mapView.setViewpointScaleAsync(getMapScale(getZoomLevel(mapView)))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is some example code that I can share:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;// When creating the view:&lt;BR /&gt;defaultGraphicsOverlay = GraphicsOverlay()&lt;BR /&gt;mapView.graphicsOverlays.add(defaultGraphicsOverlay)&lt;BR /&gt;&lt;BR /&gt;// Method that adds the graphics:&lt;/PRE&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;private fun &lt;/SPAN&gt;&lt;SPAN&gt;onAddGraphic&lt;/SPAN&gt;() {&lt;BR /&gt;    &lt;SPAN&gt;val &lt;/SPAN&gt;newGraphics = createNewGraphics()&lt;BR /&gt;    defaultGraphicsOverlay.graphics.addAll(newGraphics)&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Its quiet simple.&amp;nbsp;&lt;SPAN&gt;onAddGraphic is called at some point by the user, not initially.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 14 Dec 2022 16:58:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-graphicsoverlays-add-does-not-update-the/m-p/1241167#M5934</guid>
      <dc:creator>JulianBissekkou</dc:creator>
      <dc:date>2022-12-14T16:58:52Z</dc:date>
    </item>
  </channel>
</rss>

