mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 17:52:21 +00:00
fix(voice): the in-view scan sees News reports and Wildlife Sightings again
Voice's in-view scan projects each context record's targetPosition. News and Wildlife Sightings still set only the entity's base position, so both dropped out of "what am I looking at". They now pass it as targetPosition, as GeoJSON and FIRMS do.
This commit is contained in:
1 parent
ea3b87805a
commit
14e406002c
4 files changed
+32
-1
No files matched your search
@@ -909,6 +909,8 @@ export function createNewsLayer({
|
||||
);
|
||||
entity.__localBaseCartesian = fromDegrees(lon, lat);
|
||||
registerEntityContext(entity, {
|
||||
// Where voice's in-view scan projects it.
|
||||
targetPosition: entity.__localBaseCartesian,
|
||||
id: `news-report:${report.id}`,
|
||||
layerId: NEWS_LAYER_ID,
|
||||
layerName: 'News',
|
||||
|
||||
Reference in new issue
Block a user