cesium-drawhelper
cesium-drawhelper copied to clipboard
Cant draw at lower zoom levels
When i try to draw something at high zoom levels, the drawing disappears after double click. Please help.
Soimthe1, I recently ran across this project and I see this issue as well! Looking at the code I've found that in the startDrawingPolyshape() function it will remove any position points that are closer than the hard coded epsilon value. There is the comment ' // TODO - calculate some epsilon based on the zoom level' but I'm not sure this makes much sense because each point can be placed with a different zoom level (camera altitude). The camera position when each point is drawn inherently sets a minimum distance between two points.
If you remove lines 939 & 940 in DrawHelper.js it should fix this issue.
Thanks brother for the help, will do what you suggested.
Can this be closed based on https://github.com/leforthomas/cesium-drawhelper/commit/2f10c4eb87abbd5e6d174a6b68bbb19427e2f2fb ?