sample skeleton application with dojo toolkit & arcgis js api v 4.30
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
517 B

require(["dojo/_base/window","dojox/app/main", "dojox/json/ref", "dojo/text!./config.json", "dojo/sniff"],
function(win, Application, jsonRef, config, has){
var small = 560;
// large > 860 medium <= 860 small <= 560
var isSmall = function(){
var width = window.innerWidth || document.documentElement.clientWidth;
return width <= small;
};
var cfg = jsonRef.fromJson(config);
has.add("ie9orLess", has("ie") && (has("ie") <= 9));
has.add("isInitiallySmall", isSmall());
Application(cfg);
});