ExB Developer Edition 1.17.0
I'm working through a bug where a set of map service layers in a Scene is filtered out of my DataSourceSelector. My "hideDs" function takes in the current DataSource JSON, the dataSourceId of the JMV and a geometry type string, then does this:
const hideDataSource = (dsJson: IMDataSourceJson, jmvDataSourceId: string, geomType: GeometryType) => {
const ds = DataSourceManager.getInstance().getDataSource(dsJson.id);
return (ds.parentDataSource?.id !== jmvDataSourceId) || ds.getGeometryType() !== geomType
}
This works fine with my test Maps but when I try with a Scene, it looks like the "parentDataSource" is a completely different source with a "WEB_MAP" type, which means my filter breaks. Is this expected behaviour with Scenes in ExB? Is there a way to safely correlate the two data sources? Would selecting this source even work in widgets?