Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant draw at lower zoom levels #13

Open
soimthe1 opened this issue Nov 9, 2015 · 3 comments
Open

Cant draw at lower zoom levels #13

soimthe1 opened this issue Nov 9, 2015 · 3 comments

Comments

@soimthe1
Copy link

soimthe1 commented Nov 9, 2015

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

@dmay31
Copy link
Contributor

dmay31 commented Jul 27, 2016

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.

@soimthe1
Copy link
Author

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

@andrewkfiedler
Copy link

Can this be closed based on 2f10c4e ?

andrewkfiedler added a commit to codice/ddf-ui that referenced this issue Jan 6, 2017
 - See leforthomas/cesium-drawhelper#13 for details.
 - At lower zooms, points were being erroneously removed from drawings.
andrewkfiedler added a commit to andrewkfiedler/ddf that referenced this issue Jan 6, 2017
 - See leforthomas/cesium-drawhelper#13 for details.
 - At lower zooms, points were being erroneously removed from drawings.
andrewkfiedler added a commit to codice/ddf that referenced this issue Jan 16, 2017
…1534)

- See leforthomas/cesium-drawhelper#13 for details.
 - At lower zooms, points were being erroneously removed from drawings.
rzwiefel pushed a commit to codice/ddf-ui that referenced this issue Nov 8, 2019
…(#1534)

- See leforthomas/cesium-drawhelper#13 for details.
 - At lower zooms, points were being erroneously removed from drawings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants