[ASK]
Why domConstruct isnot found?
it's look like dojo didnot load.
please help.
Thank you
Solved! Go to Solution.
Tras,
You made a basic mistake most new AMD style coding develop make. Your require vars do not match your require list.
You have:
reguire(["esri/map",
"esri/tasks/IdentifyParameters",
"esri/tasks/IdentifyTask",
"esri/Layers/ArcGISDynamicMapServiceLayer",
"esri/symbols/SimpleFillSymbol",
"esri/symbols/SimpleLineSymbol",
"esri/InfoTemplate",
"esri/Color",
"esri/dijit/Popup",
"dojo/_base/array",
"dojo/dom-construct",
"dojo/domReady!"
], function(Map, IdentifyParameter, IdentifyTask, ArcGISDynamicMapServiceLayer, SimpleFillSymbol,
SimpleLineSymbol,Popup,Color, InfoTemplate, Popup, arrayUtils, domConstruct){
In there you have popup twice and InfoTemplate and popup switched:
It should be:
reguire(["esri/map",
"esri/tasks/IdentifyParameters",
"esri/tasks/IdentifyTask",
"esri/Layers/ArcGISDynamicMapServiceLayer",
"esri/symbols/SimpleFillSymbol",
"esri/symbols/SimpleLineSymbol",
"esri/InfoTemplate",
"esri/Color",
"esri/dijit/Popup",
"dojo/_base/array",
"dojo/dom-construct",
"dojo/domReady!"
], function(Map, IdentifyParameter, IdentifyTask, ArcGISDynamicMapServiceLayer, SimpleFillSymbol,
SimpleLineSymbol, InfoTemplate, Color, Popup, arrayUtils, domConstruct){
Notice that alignment of the require for "esri/InfoTemplate", and its matching var InfoTemplate have to appear in the exact order that the require list has them in.
Tras,
You made a basic mistake most new AMD style coding develop make. Your require vars do not match your require list.
You have:
reguire(["esri/map",
"esri/tasks/IdentifyParameters",
"esri/tasks/IdentifyTask",
"esri/Layers/ArcGISDynamicMapServiceLayer",
"esri/symbols/SimpleFillSymbol",
"esri/symbols/SimpleLineSymbol",
"esri/InfoTemplate",
"esri/Color",
"esri/dijit/Popup",
"dojo/_base/array",
"dojo/dom-construct",
"dojo/domReady!"
], function(Map, IdentifyParameter, IdentifyTask, ArcGISDynamicMapServiceLayer, SimpleFillSymbol,
SimpleLineSymbol,Popup,Color, InfoTemplate, Popup, arrayUtils, domConstruct){
In there you have popup twice and InfoTemplate and popup switched:
It should be:
reguire(["esri/map",
"esri/tasks/IdentifyParameters",
"esri/tasks/IdentifyTask",
"esri/Layers/ArcGISDynamicMapServiceLayer",
"esri/symbols/SimpleFillSymbol",
"esri/symbols/SimpleLineSymbol",
"esri/InfoTemplate",
"esri/Color",
"esri/dijit/Popup",
"dojo/_base/array",
"dojo/dom-construct",
"dojo/domReady!"
], function(Map, IdentifyParameter, IdentifyTask, ArcGISDynamicMapServiceLayer, SimpleFillSymbol,
SimpleLineSymbol, InfoTemplate, Color, Popup, arrayUtils, domConstruct){
Notice that alignment of the require for "esri/InfoTemplate", and its matching var InfoTemplate have to appear in the exact order that the require list has them in.
Thank's very much Robert Scheitlin, GISP.
it's helpfull
This might help you: https://community.esri.com/docs/DOC-7801