3. The adapter — and when to start
The adapter wraps the view, not the map:
adapter: new TerraDrawArcGISMapsSDKAdapter({
lib: {
GraphicsLayer, Graphic, Point, Polyline, Polygon,
SimpleLineSymbol, SimpleFillSymbol, SimpleMarkerSymbol,
PictureMarkerSymbol, Color
},
map: view
})
view.when(() => {
draw.start();
});