mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-09 21:02:19 +00:00
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:
1 parent
dc1144b947
commit
6dc643182e
1 file changed
+3
-5
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user