I have implemented to load the map with the id of the map in this way:
initializeMap(): Promise<any> {
const container = this.mapViewEl.nativeElement;
const webmap = new WebMap({
portalItem: {
id: 'e781f03655844e2ab9123343d21cf1'
},
});
const view = new MapView({
container,
map: webmap
});
this.webmap = webmap;
this.view = view;
return this.view.when();
}
now I need to load a map that is in url, how can I do it by loading the map with url ?
https://utility.arcgis.com/......../FeatureServer/0