Hi everyone into Community.
I would like to know how to configure API key in Angular application to be able to load prganization materila produced with ArcGIS Pro, in particular TileLayers.
I have tried with this piece of code
ngOnInit() {
//use esri-loader to load JSAPI modules
return loadModules([
'esri/config',
'esri/Map',
'esri/views/MapView',
'esri/Graphic',
'esri/widgets/BasemapToggle',
'esri/widgets/BasemapGallery'
])
.then(([ config, Map, MapView, BasemapToggle, BasemapGallery, Graphic]) => {
const esriConfig = new config({
apiKey: "<MY KEY>"
});
but when no map loads.
Any suggestion?
Thanks in advance, best regards.