How to hide the popup that appeared at 3.17?

2726
7
06-27-2016 02:38 AM
JonathanDoig1
New Contributor

I've been developing a web app on ArcGIS for JS 3.16. I just noticed that 3.17 has been released so I tried loading that instead of 3.16. It seems to work fine except that the bottom edge of a popup window is now visible on map load. I don't use popups in my app at all.

Why is it appearing and how should I hide it? I tried map.infoWindow.hide() to no avail. I guess I could fiddle with the CSS but I'm more inclined to simply revert to 3.16.

Top left corner with v3.16:

ArcGIS4JS3.16.screenshot.JPG

Top left corner with v3.17 (with the element "inspected" in Chrome Developer Tools):

ArcGIS4JS3.17.screenshot.JPG

Here are the functions I load - do I need to set an option to disable popups on one of these?

  require([

        "esri/map",

        "esri/dijit/HomeButton",

        "esri/layers/FeatureLayer",

        "esri/geometry/Extent",

        "esri/geometry/Point",

        "esri/symbols/TextSymbol",

        "esri/symbols/Font",

        "esri/layers/LabelClass",

        "esri/Color",

        "esri/symbols/SimpleMarkerSymbol",

        "esri/renderers/SimpleRenderer",

        "esri/symbols/SimpleFillSymbol",

        "esri/tasks/query",

        "esri/symbols/SimpleLineSymbol",

        "esri/dijit/LocateButton",

        "esri/tasks/locator",

        "dojo/domReady!"

Tags (2)
0 Kudos
7 Replies
RobertScheitlin__GISP
MVP Emeritus

Jonathan,

  I am not seeing that in any of the 3.17 samples. Can you post your full code that is exhibiting this behavior?

0 Kudos
RyanWever
New Contributor II

Hi Jonathan, 

I'm experiencing the same problem. Did you happen to figure out how to fix it?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Ryan,

  You should post your code as almost no one else is having this issue. As you can see Jonathan did not bother to post back likely because he found his mistake in his code.

0 Kudos
RyanWever
New Contributor II

Hi Robert,

I am able to reproduce my issue with the following code:

define([
    "dojo/parser", "dojo/ready", "dojo/dom",
    "dijit/layout/BorderContainer", "dijit/layout/ContentPane",
    "esri/map", "esri/urlUtils", "esri/arcgis/utils",
    "dojo/domReady!"
], function (    
    parser, ready, dom,
    BorderContainer, ContentPane,
    Map, urlUtils, arcgisUtils    
    ) {

    function drawMap() {        
                //render map
                return ready(function () {
                    parser.parse();

                    arcgisUtils.arcgisUrl = myUrl;

                        return arcgisUtils.createMap(myWebMapId, "map");
                });
            }

    drawMap();
});

Please let me know if I can provide any further information.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Ryan,

   Yes I need to see your whole html code to inspect your css and script blocks

0 Kudos
RyanWever
New Contributor II

Aha, it was an issue with CSS. I had updated my Javascript files but not the CSS.

Thanks for responding so quickly!

JonathanDoig1
New Contributor

Aah thanks for the update Ryan. I suspect that I also overlooked updating my CSS link. Should be:

  <link rel="stylesheet" href="https://js.arcgis.com/3.17/esri/css/esri.css">

At the time I just reverted the JS link to 3.16. Sorry I missed your earlier response Robert Scheitlin, GISP

0 Kudos