hi @QunSun,
Here is the code where I'm trying to create a JimuMapView. I'm not sure this is the correct method to do.
let jmvConstructorOptions:JimuMapViewConstructorOptions={
view:views.view,
dataSourceId:webmapId,
mapWidgetId:"widget_23",
mapViewManager:mvManager,
}
mvManager.createJimuMapView(jmvConstructorOptions).then(newJMV)
here, I'm passing WebMapId as dataSourceId.
Actually my requirement is to make the feature layer selectable even after switching the map programmatically. May be if I can change the Map Widget data source, I could resolve my issue. Can you help me out?