AnsweredAssumed Answered

Adding esri/basemaps module breaks another module

Question asked by Georgie.Cassar on Sep 9, 2015
Latest reply on Sep 9, 2015 by Georgie.Cassar

I am starting with the ESRI Popup Sample script straight out of the box.  Nothing changed other than all http references are now https..

Here it is running from our web server.   https://ecouncil.portenf.sa.gov.au/mapping/InspectorLoc/esri-popup-sample.html

 

Now I try to alter it to do some extra things like defining my own basemap.

Here is the same code and all I have done is added "esri/basemaps",   in the require section.  Nothing more.

https://ecouncil.portenf.sa.gov.au/mapping/InspectorLoc/esri-popup-sample_moduleadded.html

 

It has caused the popup creation command to fail with an error  (using IE10)  : "SCRIPT438: Object doesn't support property or method 'create' "

 

This is the command where it breaks

var popup = new Popup({

            fillSymbol: fill,

            titleInBody: false

        }, domConstruct.create("div"));

 

Why would simply adding a module break another one ?  Is there a special order I have to list them ?

This is the order I have done it :

require([

        "esri/map",

        "esri/basemaps",

        "esri/dijit/Popup", "esri/dijit/PopupTemplate",

        "esri/layers/FeatureLayer",

        "esri/symbols/SimpleFillSymbol", "esri/Color",

        "dojo/dom-class", "dojo/dom-construct", "dojo/on",

        "dojox/charting/Chart", "dojox/charting/themes/Dollar",

        "dojo/domReady!"

      ], function(........

Outcomes