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

Some drawing functions do not work with large coordinates

Open geometrikal opened this issue 4 years ago • 0 comments

I'm experimenting with nebula.gl to draw onto bitmap images (OrthographicView) by trying to recreate a simple version of the GeoJSON Editor page.

However I have some problems:

  • coord is required error using Draw90DegreePolygonMode,
  • using TransformMode doesn't work and the polygon will jump to the edge of the image
  • other modes that require clicks (e.g. DrawEllipseByBoundingBoxMode) draw strange shapes.

Example is here https://codesandbox.io/s/rectangle-k2n8fl?file=/index.js

Update:

It seems that this is caused by the coordinates being too large. If I scale the BitmapLayer bounds by 0.001 the functions work again.

geometrikal avatar Mar 29 '22 06:03 geometrikal