AnsweredAssumed Answered

Printing Issue - JavaScript 3.17

Question asked by xylochic627 on Nov 28, 2016
Latest reply on Nov 28, 2016 by xylochic627

I've recently noticed that my print widget is not working in one of my maps. However, it is working in two other maps. All three maps call to the same service and the same code blocks are used in all maps.


The biggest difference I have been able to locate between the maps is that the map where the print widget is not working is in 3.17, where the other two are in 3.14. I'd like to update my code in the one map so the print widget will work as it should. I've looked at the API reference for potential changes, but that hasn't proven to be fruitful.


When this map was first released, the print widget was working, so there is the chance the recent addition of tooltips is what has thrown this off. Any ideas?


Function and require statement:


function (domConstruct, Map, Color, keys, has, SnappingManager, SimpleRenderer, esriConfig, Graphic, esriLang, Extent, webMercatorUtils, Point, BasemapGallery, HomeButton, Search, Popup, PopupTemplate, Scalebar, Print, Measurement, InfoTemplate, ArcGISDynamicMapServiceLayer, FeatureLayer, GeometryService, PrintTemplate, SimpleFillSymbol, SimpleLineSymbol, SimpleMarkerSymbol, PictureMarkerSymbol, Draw, urlUtils, esriRequest, SpatialReference, TOC, array, aspect, dom, domStyle, ready, on, TooltipDialog, dijitPopup




var myLayouts = [{
                "name": "Print_Landscape",
                "label": "Landscape",
                "format": "pdf",
                "options": {
                    "legendLayers": [], // empty array means no legend
                    "scalebarUnit": "Miles",
                    "titleText": "State Parks"
            }, {
                "name": "Print_Portrait",
                "label": "Portrait",
                "format": "pdf",
                "options": {
                    "legendLayers": [],
                    "scaleBarUnit": "Miles",
                    "titleText": "State Parks"

             * Step: create the print templates

            var myTemplates = [];
            dojo.forEach(myLayouts, function (lo) {
                var t = new PrintTemplate();
                t.layout =;
                t.label = lo.label;
                t.format = lo.format;
                t.layoutOptions = lo.options


Print Widget:

var printMap = new Print({
   map: mapMain,
   async: true,
   url: "",
   templates: myTemplates
   }, dom.byId("PrintButton"));



tooltips.setRenderer(new SimpleRenderer(tooltipFill));

            tooltips.on('mouse-over', mouseOverGraphic);
            tooltips.on('mouse-out', mouseOutGraphic);

            //mouse over graphic
            function mouseOverGraphic(evt) {
                mapMain.infoWindow.setTitle(" ");

            function mouseOutGraphic(evt) {

            function timedClose() {
                timer = setTimeout(
                    function() {
                    }, 2000);

            function disableTimer() {

            //I am using mapinfowindow so I attach mouseover and mouseout to the infowindow
            infoWinMouseOver = on(mapMain.infoWindow.domNode, 'mouseover', function() {

            infoWinMouseOut = on(mapMain.infoWindow.domNode, 'mouseout', function() {