cesium-drawhelper icon indicating copy to clipboard operation
cesium-drawhelper copied to clipboard

Cant draw at lower zoom levels

Open soimthe1 opened this issue 9 years ago • 3 comments

When i try to draw something at high zoom levels, the drawing disappears after double click. Please help.

soimthe1 avatar Nov 09 '15 04:11 soimthe1

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.

dmay31 avatar Jul 27 '16 02:07 dmay31

Thanks brother for the help, will do what you suggested.

soimthe1 avatar Jul 27 '16 03:07 soimthe1

Can this be closed based on https://github.com/leforthomas/cesium-drawhelper/commit/2f10c4eb87abbd5e6d174a6b68bbb19427e2f2fb ?

andrewkfiedler avatar Jan 06 '17 17:01 andrewkfiedler