Oh my bad.. My code was like below require(["esri/view/MapView"], (MapView) => { cost view = new MapView({ container: "viewDiv", map: new Map({ basemap: "topo-vector" }, zoom: 4, center: [15, 65] }); }); so when it's autocasted, there's no need to crate a new instance of the class and just provide the object with correct properties?
... View more