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

Shrink plots when zoomed in all the way #256

Closed
kkfernan opened this issue Aug 22, 2016 · 4 comments
Closed

Shrink plots when zoomed in all the way #256

kkfernan opened this issue Aug 22, 2016 · 4 comments

Comments

@kkfernan
Copy link

When the map is zoomed in all the way, there are plots that overlap which makes them almost inaccessible. Is there a way to shrink the plots when zoomed in all the way? Please advise. Thank you! Example: https://storage.googleapis.com/cf-pathways-assets/interactive_map/pathways_map.html

Kenny

@neveldo
Copy link
Owner

neveldo commented Aug 25, 2016

Helloo @kennethpb ,

I answered here : #253 Give me a feedback :). I think I will bring this feature in the next release. (feel free to contribute if you have time !).

@kkfernan
Copy link
Author

kkfernan commented Sep 7, 2016

Hi @nveldo! Thanks for your help as I try to wrap my head around this issue. I am looking at your jsfiddle solution: http://jsfiddle.net/neveldo/ebxnu6b8/

Does this require to change the jquery.mapael.js file? If not, which file do I need to modify?

Please advise.

Kenny

@neveldo
Copy link
Owner

neveldo commented Sep 7, 2016

Hi,

This is an updated example compatible with jQuery 2.0.0 , you don't have to change the jquery.mapael.js file if you are already using the latest version. All you need is to add the following event listener : $(".maparea5").on("zoom.mapael", function() {} and adapt it to your code. By the way, this is far from the perfect solution as the render is very slow.

You can take a look at this thread : #253 where we discuss the same issue.

@Indigo744
Copy link
Collaborator

Discussion will continue on #253

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