<?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: Draggable Marker in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draggable-marker/m-p/1317274#M81935</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7384"&gt;@ReneRubalcava&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I am trying in indoor map on floors, if I do drag and drop on floor it is going to ground floor,&amp;nbsp; How can I place on floor.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2023 07:21:43 GMT</pubDate>
    <dc:creator>KrishnaReddyRanabothu</dc:creator>
    <dc:date>2023-08-10T07:21:43Z</dc:date>
    <item>
      <title>Draggable Marker</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draggable-marker/m-p/1155118#M76698</link>
      <description>&lt;P&gt;I need to have a draggable marker on the map something like how it is working in the example below -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.here.com/documentation/examples/maps-js/markers/draggable-marker" target="_self"&gt;https://developer.here.com/documentation/examples/maps-js/markers/draggable-marker&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 03:07:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draggable-marker/m-p/1155118#M76698</guid>
      <dc:creator>Tarak-Kar</dc:creator>
      <dc:date>2022-03-18T03:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Draggable Marker</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draggable-marker/m-p/1155236#M76699</link>
      <description>&lt;P&gt;Here is a sample of how to do this on a &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#event-hold" target="_self"&gt;hold&lt;/A&gt; event.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/odoe/pen/bLEroK?editors=0010" target="_blank"&gt;https://codepen.io/odoe/pen/bLEroK?editors=0010&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  view.on("hold", ({ mapPoint }) =&amp;gt; {
    view.hitTest(view.toScreen(mapPoint)).then((hitResult) =&amp;gt; {
      if (!hitResult.results[0].graphic) return;
      console.log("hold event, now drag mouse to move graphic");
      pointGraphic.symbol = selectSymbol;
      const pausePan = view.on("drag", stop);
      const move = view.on("pointer-move", updateGraphic);
      const up = view.on("pointer-up", cleanUp);
      handlers.push(pausePan);
      handlers.push(move);
      handlers.push(up);
    });
  });&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 18 Mar 2022 14:37:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draggable-marker/m-p/1155236#M76699</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-03-18T14:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Draggable Marker</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draggable-marker/m-p/1306704#M81640</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7384"&gt;@ReneRubalcava&lt;/a&gt;&amp;nbsp;how would you make the marker draggable without having to "long press" (hold) the marker? I'm looking for standard marker drag/drop behavior (hover over marker, get pointer, click and drag marker).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 21:24:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draggable-marker/m-p/1306704#M81640</guid>
      <dc:creator>RussellMGreen</dc:creator>
      <dc:date>2023-07-07T21:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Draggable Marker</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draggable-marker/m-p/1306955#M81653</link>
      <description>&lt;P&gt;You'd need to add some logic to handle when you click to start moving it and click to stop. Here's an updated demo.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/odoe/pen/VwVrxBJ?editors=0010" target="_blank"&gt;https://codepen.io/odoe/pen/VwVrxBJ?editors=0010&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    if (pause) {
      handlers.forEach((a) =&amp;gt; a.remove());
      handlers.length = 0;
      pause = false;
      return;
    };&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 10 Jul 2023 14:57:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draggable-marker/m-p/1306955#M81653</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2023-07-10T14:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Draggable Marker</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draggable-marker/m-p/1317274#M81935</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7384"&gt;@ReneRubalcava&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I am trying in indoor map on floors, if I do drag and drop on floor it is going to ground floor,&amp;nbsp; How can I place on floor.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 07:21:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draggable-marker/m-p/1317274#M81935</guid>
      <dc:creator>KrishnaReddyRanabothu</dc:creator>
      <dc:date>2023-08-10T07:21:43Z</dc:date>
    </item>
  </channel>
</rss>

