streetscape.gl icon indicating copy to clipboard operation
streetscape.gl copied to clipboard

Obtain the coordinates of four points in the visual range

Open juzi5230 opened this issue 4 years ago • 5 comments
trafficstars

Can I obtain the coordinates of four points in the visual range

juzi5230 avatar Nov 01 '21 12:11 juzi5230

Can you elaborate on what the visual range means?

yujingz avatar Nov 04 '21 16:11 yujingz

Can you elaborate on what the visual range means?

The range we can see of the screen, i want to obtain the coordinates of the four vertices in the screen, or the minimum coordinate point and the maximum coordinate point

juzi5230 avatar Nov 09 '21 03:11 juzi5230

Coordinates doesn't really make sense in 3d views

For 2D views, check out https://avs.auto/#/streetscape.gl/api-reference/react-components/log-viewer?section=onclick-function-optional-

yujingz avatar Nov 09 '21 06:11 yujingz

Coordinates doesn't really make sense in 3d views

For 2D views, check out https://avs.auto/#/streetscape.gl/api-reference/react-components/log-viewer?section=onclick-function-optional-

I get it ,thanks for you reply!

juzi5230 avatar Dec 01 '21 08:12 juzi5230

@juzi5230 I think what you want are the bounds of the viewport. deck.gl supports this, see https://deck.gl/docs/api-reference/core/viewport

I don't know if we expose this at the. moment.

twojtasz avatar Jan 02 '22 05:01 twojtasz