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

Scale the dot radii on zoom #23

Open
lindsayplatt opened this issue Sep 25, 2018 · 1 comment
Open

Scale the dot radii on zoom #23

lindsayplatt opened this issue Sep 25, 2018 · 1 comment

Comments

@lindsayplatt
Copy link

The dots look super large on zoom right now. We should scale them, so they are smaller when you zoom in. One option to implement this is already outlined in the viz-scratch code here https://github.com/USGS-VIZLAB/viz-scratch/blob/master/svg_canvas_map/target/canvas-click-zoom.html#L157-L158.

@lindsayplatt
Copy link
Author

It is half set up in create_circles, because the radii change based on the value of scale but the scale value doesn't actually change right now. Need a way to use k from the clicked function when it zooms to figure out how much to scale the circle radii. Can't just do zoom vs not zoom because some zooms are farther in than others.

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

1 participant