mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-21 02:32:18 +00:00
fix(cctv): stand cameras and count markers on the drawn terrain
When the terrain height batch loses a chunk to the rate limit, the cameras in it keep a sea-level fallback height. In the mountains that put them far under the surface, so the view pass judged them by a point that was not where they are drawn: a tilted view dropped the count marker, a click on the marker framed empty ground, and icons drifted on tilt and pan. - A camera with no real ground height takes the height of the terrain the globe draws once it is near the screen (up to 300 reads a pass, through the height service), and a later answer from the batch replaces it. - A count marker is anchored to the drawn terrain under its centre, and a click frames that ground. - Cameras on one mount draw side by side, 30 px apart, each with its own callout, instead of as one icon with several callouts. The photoreal map stack is not covered: terrain is not the surface there.
This commit is contained in:
1 parent
65942008bf
commit
2e18673df8
9 files changed
+453
-69
No files matched your search
@@ -71,6 +71,14 @@ export const VIEW_CELL_PX = 40;
|
||||
|
||||
export const VIEW_MIN_CELL_M = 60;
|
||||
|
||||
// Cameras on one mount (the same point to about a metre) draw side by side,
|
||||
// this many pixels apart, once they show as icons.
|
||||
export const VIEW_SITE_SPREAD_PX = 30;
|
||||
|
||||
// Cameras without a ground height that one view pass may read from the drawn
|
||||
// terrain. The rest wait for the next pass.
|
||||
export const VIEW_GROUND_READS = 300;
|
||||
|
||||
// Diameter at one camera before applying the size limits, in CSS pixels.
|
||||
export const COUNT_BASE_PX = 38;
|
||||
|
||||
|
||||
Reference in new issue
Block a user