Hi.
My question is about ArcGIS JS Api.
For some reasons I need to run a function which inside the main function from outside of main function.
How can I do it? Is there any way to do it?
<script>
require([
"esri/map",
...
"dojo/domReady!"
], function(
Map,...
) {
var map = new Map("map", {
center: [-56.049, 38.485],
zoom: 3,
basemap: "streets"
});
function MyInnerFunction(){
//body of inner funcion
}
}); //End of the main function
MyInnerFunction(); //Run inner function
</script>