Select to view content in your preferred language

Make Popup Moveable

487
2
Jump to solution
01-04-2019 06:48 AM
RichBell
Regular Contributor

What changed in WAB 2.9 to make this code not work?

I want to make a popup moveable.

mo.createWebMap = function(portalUrl, itemId, mapDiv, /* optional */ options) {
portalUrl = portalUrlUtils.
getStandardPortalUrl(portalUrl);
var itemUrl = portalUrlUtils.getBaseItemUrl(portalUrl);
arcgisUtils.
arcgisUrl = itemUrl;
var def = arcgisUtils.createMap(itemId, mapDiv, options);
def.then(function (response){
var map = response.map;
var handle = query(".title", map.infoWindow.domNode)[0];
var dnd = new Moveable(map.infoWindow.domNode, {

handle: handle
});
// when the infoWindow is moved, hide the arrow:
on(dnd, 'FirstMove', function() {
// hide pointer and outerpointer (used depending on where the pointer is shown)
var arrowNode = query(".outerPointer", map.infoWindow.domNode)[0];
domClass.
add(arrowNode, "hidden");

var arrowNode = query(".pointer", map.infoWindow.domNode)[0];
domClass.
add(arrowNode, "hidden");
}.
bind(this));
});

return def;
};

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Rich,

   Is it just the arrow not being hidden or is it nothing is working at all?

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Rich,

   Is it just the arrow not being hidden or is it nothing is working at all?

0 Kudos
RichBell
Regular Contributor

My Bad I forgot to add this

define([
    'dojo/dnd/Moveable',//BELL CHANGE
    'dojo/dom-class',//BELL CHANGE