<?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: Remove Locate Widget's graphic in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-locate-widget-s-graphic/m-p/1328424#M82213</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/711729"&gt;@kprenesti&lt;/a&gt;&amp;nbsp;The locate graphic is stored in the view's graphics collection.&amp;nbsp; I think you should be able to remove it like this&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;view.graphics.remove(locate.graphic);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;if you Locate widget was named "locate".&lt;/P&gt;&lt;P&gt;Wrote a quick codepen here:&amp;nbsp;&lt;A href="https://codepen.io/sagewall/pen/rNowYoN" target="_blank"&gt;https://codepen.io/sagewall/pen/rNowYoN&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Sep 2023 18:16:35 GMT</pubDate>
    <dc:creator>Sage_Wall</dc:creator>
    <dc:date>2023-09-13T18:16:35Z</dc:date>
    <item>
      <title>Remove Locate Widget's graphic</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-locate-widget-s-graphic/m-p/1328078#M82208</link>
      <description>&lt;P&gt;Hello all! I have a project where one of the requirements is to toggle the My Location graphic on and off.&amp;nbsp; To Toggle the icon on, I am using the native Locate functionality, which zooms to my location and shows the graphic.&amp;nbsp; Toggling it off should mean simply removing the graphic, but I'm not sure how to do that.&amp;nbsp; Oh, and in case it matters, I'm working in Vue 3.&lt;/P&gt;&lt;P&gt;Any ideas? Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 01:54:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-locate-widget-s-graphic/m-p/1328078#M82208</guid>
      <dc:creator>kprenesti</dc:creator>
      <dc:date>2023-09-13T01:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Locate Widget's graphic</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-locate-widget-s-graphic/m-p/1328424#M82213</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/711729"&gt;@kprenesti&lt;/a&gt;&amp;nbsp;The locate graphic is stored in the view's graphics collection.&amp;nbsp; I think you should be able to remove it like this&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;view.graphics.remove(locate.graphic);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;if you Locate widget was named "locate".&lt;/P&gt;&lt;P&gt;Wrote a quick codepen here:&amp;nbsp;&lt;A href="https://codepen.io/sagewall/pen/rNowYoN" target="_blank"&gt;https://codepen.io/sagewall/pen/rNowYoN&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 18:16:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-locate-widget-s-graphic/m-p/1328424#M82213</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2023-09-13T18:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Locate Widget's graphic</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-locate-widget-s-graphic/m-p/1328429#M82214</link>
      <description>&lt;P&gt;Thank you! Also, you need to cancel the locate so it doesn't show up again.&amp;nbsp; Thanks again!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 18:21:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-locate-widget-s-graphic/m-p/1328429#M82214</guid>
      <dc:creator>kprenesti</dc:creator>
      <dc:date>2023-09-13T18:21:03Z</dc:date>
    </item>
  </channel>
</rss>

