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.
 
 
 
 
 
 

42 lines
1009 B

// importing dojo&esri library & widget module
require([
// Esri Library
"esri/config",
"esri/WebMap",
"esri/views/MapView",
// Widget Module
"bufferRadius/bufferRadius",
"layer/LayerList",
"menu/menuBar",
"utils/home",
// dojo library
"dojo/domReady",
"dojo/parser",
"dijit/layout/BorderContainer",
"dijit/layout/ContentPane"
], function(Config, WebMap, MapView,osx_buffer,Layer,menuBar,Osx_Home,ready) {
ready(function () {
const webmap = new WebMap({
portalItem: {
id: "60994025213a4874bdb2e39503c72407"
}
});
var view = new MapView({
container: "map",
map: webmap,
center: [106.840837, -6.294844],
zoom: 16
});
// call module widget
var bufferRadius = new osx_buffer(view);
var layerList = new Layer(view);
var menus = new menuBar();
var Home = new Osx_Home(view);
});
}
);