<?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: Question about upcoming JS API 4.11 Release in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-upcoming-js-api-4-11-release/m-p/388398#M35844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your quick response, Undral. I tagged you because you already answered to my&amp;nbsp;earlier posts regarding using graphics .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When adding a single Graphic object to two different MapViews (e.g. Map and connected map or overview) the Graphic is removed from the&amp;nbsp;1st MapView when added to the 2nd. This happens only if we use an additional GraphicsLayer and not when added to the default graphics of the view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was different in 4.9 and 4.10 - so we just generated our graphics and added the to the views.&lt;/P&gt;&lt;P&gt;Maybe this is a known breaking change, we just need to make sure before we change our handling of graphics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample:&lt;/P&gt;&lt;P&gt;- generates 2 views each with its own GraphicsLayer&lt;/P&gt;&lt;P&gt;- adds Graphics objects to GraphicsLayer and default graphics of view 1 (timeout)&lt;/P&gt;&lt;P&gt;- adds&amp;nbsp;&lt;SPAN&gt;the same Graphics objects to GraphicsLayer and default graphics of view 2 (timeout)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;==&amp;gt;&amp;nbsp;Polygon on GraphicsLayer of View 1 is deleted&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Mar 2019 08:02:35 GMT</pubDate>
    <dc:creator>RomanKönig</dc:creator>
    <dc:date>2019-03-21T08:02:35Z</dc:date>
    <item>
      <title>Question about upcoming JS API 4.11 Release</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-upcoming-js-api-4-11-release/m-p/388396#M35842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a question mainly for the JS API developers at esri -&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/51882"&gt;Undral Batsukh&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/27489"&gt;Yann Cabon&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We've&amp;nbsp;seen that the 4.11 release (maybe alpha, beta?) of the API is already online and tried a few things using this api&amp;nbsp;in our own development application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now we found an unexpected behavior regarding GraphicsLayer, which&amp;nbsp;handled different in 4.10 and before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is - does it make sense to file such a sample?&lt;BR /&gt;If yes, where should we do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 10:26:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-upcoming-js-api-4-11-release/m-p/388396#M35842</guid>
      <dc:creator>RomanKönig</dc:creator>
      <dc:date>2019-03-20T10:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Question about upcoming JS API 4.11 Release</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-upcoming-js-api-4-11-release/m-p/388397#M35843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please post your sample and the issue description here?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much,&lt;/P&gt;&lt;P&gt;Undral&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 17:25:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-upcoming-js-api-4-11-release/m-p/388397#M35843</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2019-03-20T17:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Question about upcoming JS API 4.11 Release</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-upcoming-js-api-4-11-release/m-p/388398#M35844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your quick response, Undral. I tagged you because you already answered to my&amp;nbsp;earlier posts regarding using graphics .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When adding a single Graphic object to two different MapViews (e.g. Map and connected map or overview) the Graphic is removed from the&amp;nbsp;1st MapView when added to the 2nd. This happens only if we use an additional GraphicsLayer and not when added to the default graphics of the view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was different in 4.9 and 4.10 - so we just generated our graphics and added the to the views.&lt;/P&gt;&lt;P&gt;Maybe this is a known breaking change, we just need to make sure before we change our handling of graphics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample:&lt;/P&gt;&lt;P&gt;- generates 2 views each with its own GraphicsLayer&lt;/P&gt;&lt;P&gt;- adds Graphics objects to GraphicsLayer and default graphics of view 1 (timeout)&lt;/P&gt;&lt;P&gt;- adds&amp;nbsp;&lt;SPAN&gt;the same Graphics objects to GraphicsLayer and default graphics of view 2 (timeout)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;==&amp;gt;&amp;nbsp;Polygon on GraphicsLayer of View 1 is deleted&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2019 08:02:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-upcoming-js-api-4-11-release/m-p/388398#M35844</guid>
      <dc:creator>RomanKönig</dc:creator>
      <dc:date>2019-03-21T08:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Question about upcoming JS API 4.11 Release</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-upcoming-js-api-4-11-release/m-p/388399#M35845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;OK I confirmed that it is a breaking change. A&amp;nbsp;graphic can only be in one layer at a time. When&amp;nbsp;adding a graphic to a graphicslayer, and if it is already in another graphicslayer, the graphic is **moved** to the destination graphicslayer.&lt;/P&gt;&lt;P&gt;We will a note about it in Release Notes for 4.11. Hope this is clear and answers your question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Undral&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2019 16:59:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-upcoming-js-api-4-11-release/m-p/388399#M35845</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2019-03-21T16:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Question about upcoming JS API 4.11 Release</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-upcoming-js-api-4-11-release/m-p/388400#M35846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you mean this is a wanted behaviour?&lt;/P&gt;&lt;P&gt;But then why is this only for GraphicsLayer and not for the defaults graphics of a view?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it was better and more useful like it was handled in 4.10. The usage of Graphics seems to get more and more complicated than it gets easier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2019 07:58:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-upcoming-js-api-4-11-release/m-p/388400#M35846</guid>
      <dc:creator>RomanKönig</dc:creator>
      <dc:date>2019-03-22T07:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Question about upcoming JS API 4.11 Release</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-upcoming-js-api-4-11-release/m-p/388401#M35847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roman,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late reply. I was out of the office.&amp;nbsp; The change happened because graphics can only have one owner. Graphics were never meant to be shared in multiple layers.&amp;nbsp;The way it&amp;nbsp;worked before is really a bug.&lt;/P&gt;&lt;P&gt;The problem is that there is only one Graphic.layer and change notifications would only appear in one view and not in the other we now strictly enforce this, so there are no surprises.&lt;/P&gt;&lt;P&gt;However, it seems you can still add the same graphic to multiple view.graphics. I think this shouldn’t be the case. I will investigate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Undral&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2019 16:04:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-upcoming-js-api-4-11-release/m-p/388401#M35847</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2019-03-29T16:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Question about upcoming JS API 4.11 Release</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-upcoming-js-api-4-11-release/m-p/388402#M35848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply! This clears things up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2019 16:08:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-upcoming-js-api-4-11-release/m-p/388402#M35848</guid>
      <dc:creator>RomanKönig</dc:creator>
      <dc:date>2019-03-29T16:08:30Z</dc:date>
    </item>
  </channel>
</rss>

