I'm trying to set up the web map example using our portal, but nothing is actually loading
The web map is shared to public
HTML Code :
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<title>Eletrosul test map</title>
<style>
html,
body,
#viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>
<link rel="stylesheet" href="https://js.arcgis.com/4.0/esri/css/main.css">
<link rel="stylesheet" href="https://js.arcgis.com/4.0/esri/css/calcite/calcite.css">
<script src="https://js.arcgis.com/4.0/"></script>
<script>
require([
"esri/views/MapView",
"esri/WebMap",
"dojo/domReady!",
"esri/config"
],function(esriConfig){
portalUrl : "https://eletrosul.maps.arcgis.com/home"
},function(MapView, WebMap){
var webmap = new WebMap({
portalItem: {
id: "8dc6238168494f64b163c81b43baebe0"
}
});
var view = new MapView({
map: webmap,
container: "viewDiv"
});
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html>
Our Portal (It's in Portuguese, but the link and ID checks) :
arcgisUtils
, as shown in this sample? developers.arcgis.com/javascript/3/jssamples/…