require(["esri/toolbars/_Box",...other modules you need], function(Box, other module names){ //you can check the source of the function _deNormalizePoint by examing the property //Box.prototype._deNormalizePoint //once you have the minified code of the function, you can modify it as: Box.prototype._deNormalizePoint = function (d,a){ //you add the following line of code if (this._map._getFrameWidth() === -1)return d; for(var b=this._map._getFrameWidth(),c={x:d.x,y:d.y};Math.abs(c.x-a.x)>=b;)c.x=c.x<a.x?c.x+b:c.x-b;var e=Math.abs(c.x-a.x); Math.abs(c.x-a.x+b)<e?c.x+=b:Math.abs(c.x-a.x-b)<e&&(c.x-=b);return c }; //the rest of your code of the application });
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.