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;
};
Solved! Go to Solution.
Rich,
Is it just the arrow not being hidden or is it nothing is working at all?
Rich,
Is it just the arrow not being hidden or is it nothing is working at all?
My Bad I forgot to add this
define([
'dojo/dnd/Moveable',//BELL CHANGE
'dojo/dom-class',//BELL CHANGE