<?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 Is it possible to make the infowindow/pop up window draggable  in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-make-the-infowindow-pop-up/m-p/253398#M23438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Geonet Users,&lt;/P&gt;&lt;P&gt;We have several GIS apps built using JavaScript API where our users want to drag&amp;nbsp; infowindow / pop up window to their desired location on map. Is it possible to that with JavaScript API? I will appreciate your thoughts and ideas on this.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Sep 2015 16:34:25 GMT</pubDate>
    <dc:creator>AzizaParveen2</dc:creator>
    <dc:date>2015-09-22T16:34:25Z</dc:date>
    <item>
      <title>Is it possible to make the infowindow/pop up window draggable</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-make-the-infowindow-pop-up/m-p/253398#M23438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Geonet Users,&lt;/P&gt;&lt;P&gt;We have several GIS apps built using JavaScript API where our users want to drag&amp;nbsp; infowindow / pop up window to their desired location on map. Is it possible to that with JavaScript API? I will appreciate your thoughts and ideas on this.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 16:34:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-make-the-infowindow-pop-up/m-p/253398#M23438</guid>
      <dc:creator>AzizaParveen2</dc:creator>
      <dc:date>2015-09-22T16:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to make the infowindow/pop up window draggable</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-make-the-infowindow-pop-up/m-p/253399#M23439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This would be very useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 16:35:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-make-the-infowindow-pop-up/m-p/253399#M23439</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2015-09-22T16:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to make the infowindow/pop up window draggable</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-make-the-infowindow-pop-up/m-p/253400#M23440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aziza,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this &lt;A href="http://jsfiddle.net/goldenlimit/gaz8ao8n/"&gt;sample&lt;/A&gt; that shows how to make the infoWindow draggable.&lt;/P&gt;&lt;P&gt;This is can be done with the &lt;A href="http://dojotoolkit.org/reference-guide/1.10/dojo/dnd/Moveable.html"&gt;dojo/dnd/Moveable&lt;/A&gt; module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dojo/dnd/Moveable simply takes a DOM Node reference. To make the InfoWindow of the map draggable, pass map.infoWindow.domNode to the Moveable constructor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 18:41:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-make-the-infowindow-pop-up/m-p/253400#M23440</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2015-09-22T18:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to make the infowindow/pop up window draggable</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-make-the-infowindow-pop-up/m-p/253401#M23441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much Yue for your reply. I could not get into the sample link.&lt;/P&gt;&lt;P&gt;I will try the &lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fdojotoolkit.org%2Freference-guide%2F1.10%2Fdojo%2Fdnd%2FMoveable.html" rel="nofollow" target="_blank"&gt;dojo/dnd/Moveable&lt;/A&gt; module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 18:47:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-make-the-infowindow-pop-up/m-p/253401#M23441</guid>
      <dc:creator>AzizaParveen2</dc:creator>
      <dc:date>2015-09-22T18:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to make the infowindow/pop up window draggable</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-make-the-infowindow-pop-up/m-p/253402#M23442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try it again it should work now&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 18:49:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-make-the-infowindow-pop-up/m-p/253402#M23442</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2015-09-22T18:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to make the infowindow/pop up window draggable</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-make-the-infowindow-pop-up/m-p/253403#M23443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice exactly what I wanted, can't wait to try , Thank you so much Yue&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 18:57:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-make-the-infowindow-pop-up/m-p/253403#M23443</guid>
      <dc:creator>AzizaParveen2</dc:creator>
      <dc:date>2015-09-22T18:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to make the infowindow/pop up window draggable</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-make-the-infowindow-pop-up/m-p/253404#M23444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://jsfiddle.net/JeffJacobson/zj9n0L10/" rel="nofollow noopener noreferrer" target="_blank"&gt;I made a few minor improvements / modifications to your sample&lt;/A&gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Updated to ArcGIS API v3.14.&lt;/LI&gt;&lt;LI&gt;Replaced some dojo-specific methods (query and css class manipulation) with browser built-in equivalents.&lt;/LI&gt;&lt;LI&gt;Removed reference to "dojo/on" module. Replaced with Moveable.on().&lt;/LI&gt;&lt;LI&gt;Modified CSS to remove use of !important.&lt;/LI&gt;&lt;LI&gt;Removed duplicate variable declaration.&lt;/LI&gt;&lt;/UL&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;body, html {
&amp;nbsp;&amp;nbsp;&amp;nbsp; width: 100%;
&amp;nbsp;&amp;nbsp;&amp;nbsp; height: 100%;
&amp;nbsp;&amp;nbsp;&amp;nbsp; margin: 0;
&amp;nbsp;&amp;nbsp;&amp;nbsp; padding: 0;
}
#map {
&amp;nbsp;&amp;nbsp;&amp;nbsp; height: 100%;
&amp;nbsp;&amp;nbsp;&amp;nbsp; width: 100%;
&amp;nbsp;&amp;nbsp;&amp;nbsp; margin: 0px;
}

.esriPopupWrapper .title {
&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor: move;
}
.esriPopup .pointer.hidden {
&amp;nbsp;&amp;nbsp;&amp;nbsp; display: none;
}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;require([
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'esri/arcgis/utils',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojo/dnd/Moveable'
], function (
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcgisUtils,
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; Moveable
) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var webMapItemID = "fe0827dfea2441f5b206b0e2c37b79cd";
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcgisUtils.createMap(webMapItemID, "map", {}).then(function(response) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var map = response.map;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var handle = map.infoWindow.domNode.querySelector(".title"); //query(".title", map.infoWindow.domNode)[0];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var dnd = new Moveable(map.infoWindow.domNode, {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; handle: handle
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // when the infoWindow is moved, hide the arrow:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dnd.on('FirstMove', function() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // hide pointer and outerpointer (used depending on where the pointer is shown)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var arrowNode =&amp;nbsp; map.infoWindow.domNode.querySelector(".outerPointer");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arrowNode.classList.add("hidden");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arrowNode =&amp;nbsp; map.infoWindow.domNode.querySelector(".pointer");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arrowNode.classList.add("hidden");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }.bind(this));
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:32:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-make-the-infowindow-pop-up/m-p/253404#M23444</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2021-12-11T12:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to make the infowindow/pop up window draggable</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-make-the-infowindow-pop-up/m-p/253405#M23445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much Jeff.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 21:40:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-make-the-infowindow-pop-up/m-p/253405#M23445</guid>
      <dc:creator>AzizaParveen2</dc:creator>
      <dc:date>2015-09-30T21:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to make the infowindow/pop up window draggable</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-make-the-infowindow-pop-up/m-p/253406#M23446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally, I was able to try your example, worked like a charm, Thanks a ton for help:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 21:26:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-make-the-infowindow-pop-up/m-p/253406#M23446</guid>
      <dc:creator>AzizaParveen2</dc:creator>
      <dc:date>2015-11-19T21:26:11Z</dc:date>
    </item>
  </channel>
</rss>

