nebula.gl
nebula.gl copied to clipboard
Some drawing functions do not work with large coordinates
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 requirederror usingDraw90DegreePolygonMode, - using
TransformModedoesn'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.