Count OSM Places on the movers set on both engines in the open layers scenario

OSM Places draws through one display on every engine now, so on Cesium its
points are a movers set too, not a data source's entities.
This commit is contained in:
German Khokhlov committed 2026-11-07 04:36:31 +04:00
1 parent dc1144b947
commit 6dc643182e
1 file changed
+3 -5
+3 -5
View File
@@ -231,12 +231,10 @@ await strict.run({}, async (b) => {
await setEnabled('osm-places', true);
const places = await p.evaluate(() => {
const d = window.__godsEyeView;
// Both engines draw the places as one movers point set.
const drawn =
d.engine.kind === 'navara'
? (d.engine.movers.list().find((set) => set.id === 'osm-places')
?.count ?? 0)
: (d.viewer.dataSources.getByName('osm-places')[0]?.entities.values
.length ?? 0);
d.engine.movers.list().find((set) => set.id === 'osm-places')?.count ??
0;
return {
records: window.qaModels['osm-places'].getAnalystRecords().length,
drawn,