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.
 
 
 
 
 
 

15 lines
457 B

require(["dojox/app/main", "dojox/json/ref", "dojo/sniff"],
function(Application, json, has){
var configurationFile = "./config.json";
require(["dojo/text!"+configurationFile], function(configJson){
var config = json.fromJson(configJson);
var width = window.innerWidth || document.documentElement.clientWidth;
if(width <= 600){
has.add("phone", true);
}
has.add("ie9orLess", has("ie") && (has("ie") <= 9));
Application(config);
});
});