<?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 a point marker on a map from a click in a ExB custom Widget in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/add-a-point-marker-on-a-map-from-a-click-in-a-exb/m-p/1526208#M14451</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/427696"&gt;@sylvainhotte1&lt;/a&gt;&amp;nbsp;Would you be willing to share your widget?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2024 22:17:40 GMT</pubDate>
    <dc:creator>Brian_McLeer</dc:creator>
    <dc:date>2024-08-22T22:17:40Z</dc:date>
    <item>
      <title>Add a point marker on a map from a click in a ExB custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/add-a-point-marker-on-a-map-from-a-click-in-a-exb/m-p/1523959#M14370</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am builder a custom widget that will be similar as the coordinate widget.&lt;/P&gt;&lt;P&gt;I am still a seed in the ground with ExB widget.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sylvainhotte1_1-1724091094770.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/112802iB1C99D5102A349AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sylvainhotte1_1-1724091094770.png" alt="sylvainhotte1_1-1724091094770.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sylvainhotte1_0-1724090879119.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/112801i8B823DD3264C3A30/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sylvainhotte1_0-1724090879119.png" alt="sylvainhotte1_0-1724090879119.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;User click on the cross&lt;/LI&gt;&lt;LI&gt;then click on the map (a market will appear)&lt;/LI&gt;&lt;LI&gt;the coordinate are save in variable&lt;/LI&gt;&lt;LI&gt;then the user click on the button for some function to be executed&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Everything is working except for the marker.&lt;/P&gt;&lt;P&gt;I want to be able to add a marker like this when I click on a map I don't know how to make the marker appear. I took inspiration from the coordinate widget. I copied this function into my code to start but...&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;getMarkerGraphic&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;mapPoint&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;symbol&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;PictureMarkerSymbol&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;url&lt;/SPAN&gt;&lt;SPAN&gt;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t;mapPoint&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;symbol&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; })&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bu when I reload I get this (failed to load)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sylvainhotte1_2-1724091343893.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/112803iBBEB579D750E8E5A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sylvainhotte1_2-1724091343893.png" alt="sylvainhotte1_2-1724091343893.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am stuck there... any creation of any object will give me that problem ( const xyz = new Whatever() )&lt;/P&gt;&lt;P&gt;the function is not event called anywhere in my code at this point.&lt;/P&gt;&lt;P&gt;I coded my widget base on a function model (not a class). But I think the coordinate widget is also a function...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sylvainhotte1_3-1724091599330.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/112805iCEBDA8FAFBA892A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sylvainhotte1_3-1724091599330.png" alt="sylvainhotte1_3-1724091599330.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any idea ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sylvain&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 18:23:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/add-a-point-marker-on-a-map-from-a-click-in-a-exb/m-p/1523959#M14370</guid>
      <dc:creator>sylvainhotte1</dc:creator>
      <dc:date>2024-08-19T18:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Add a point marker on a map from a click in a ExB custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/add-a-point-marker-on-a-map-from-a-click-in-a-exb/m-p/1523968#M14371</link>
      <description>&lt;P&gt;I need to add &lt;STRONG&gt;&lt;SPAN&gt;"dependency"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;"jimu-arcgis"&lt;/STRONG&gt;&lt;/SPAN&gt; in the manifest&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 18:39:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/add-a-point-marker-on-a-map-from-a-click-in-a-exb/m-p/1523968#M14371</guid>
      <dc:creator>sylvainhotte1</dc:creator>
      <dc:date>2024-08-19T18:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Add a point marker on a map from a click in a ExB custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/add-a-point-marker-on-a-map-from-a-click-in-a-exb/m-p/1526208#M14451</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/427696"&gt;@sylvainhotte1&lt;/a&gt;&amp;nbsp;Would you be willing to share your widget?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 22:17:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/add-a-point-marker-on-a-map-from-a-click-in-a-exb/m-p/1526208#M14451</guid>
      <dc:creator>Brian_McLeer</dc:creator>
      <dc:date>2024-08-22T22:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Add a point marker on a map from a click in a ExB custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/add-a-point-marker-on-a-map-from-a-click-in-a-exb/m-p/1526532#M14479</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/346604"&gt;@Brian_McLeer&lt;/a&gt;Yes no problem. I still have a few things to adjust then I will send it to you. It should be done next week.&lt;/P&gt;&lt;P&gt;Sylvain&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 16:00:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/add-a-point-marker-on-a-map-from-a-click-in-a-exb/m-p/1526532#M14479</guid>
      <dc:creator>sylvainhotte1</dc:creator>
      <dc:date>2024-08-23T16:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Add a point marker on a map from a click in a ExB custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/add-a-point-marker-on-a-map-from-a-click-in-a-exb/m-p/1528280#M14569</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/346604"&gt;@Brian_McLeer&lt;/a&gt; here's the small widget I made.&lt;/P&gt;&lt;P&gt;The widget is called xyurl&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sylvainhotte1_0-1724800853905.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113677i0FB519811059BCB0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sylvainhotte1_0-1724800853905.png" alt="sylvainhotte1_0-1724800853905.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The setting needs a map, the text for the button a url ({x}{y} will be replaced with the actual coordinate one you click on the map) and the color of the pin on the map&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sylvainhotte1_1-1724801062891.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113679iA452887391A17B7C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sylvainhotte1_1-1724801062891.png" alt="sylvainhotte1_1-1724801062891.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;in runtime&lt;/P&gt;&lt;P&gt;(1) click the cross and the the map (the pin will appear)&lt;/P&gt;&lt;P&gt;(2) the you can click the button&lt;/P&gt;&lt;P&gt;(3) click the trash can to delete the pin&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sylvainhotte1_2-1724801337627.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113680i4122F2A8BEC86D84/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sylvainhotte1_2-1724801337627.png" alt="sylvainhotte1_2-1724801337627.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my first widget, so it may not be perfect.&lt;/P&gt;&lt;P&gt;Hope it help&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Sylvain&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 23:29:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/add-a-point-marker-on-a-map-from-a-click-in-a-exb/m-p/1528280#M14569</guid>
      <dc:creator>sylvainhotte1</dc:creator>
      <dc:date>2024-08-27T23:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Add a point marker on a map from a click in a ExB custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/add-a-point-marker-on-a-map-from-a-click-in-a-exb/m-p/1528643#M14584</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/427696"&gt;@sylvainhotte1&lt;/a&gt;, I appreciate you being open to sharing it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 14:03:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/add-a-point-marker-on-a-map-from-a-click-in-a-exb/m-p/1528643#M14584</guid>
      <dc:creator>Brian_McLeer</dc:creator>
      <dc:date>2024-08-28T14:03:03Z</dc:date>
    </item>
  </channel>
</rss>

