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

I was think about adding custom code in onclick event of elements. #22

Closed
SreekeshOkky opened this issue Sep 26, 2013 · 2 comments
Closed

Comments

@SreekeshOkky
Copy link

Is there any provision to add custom code in onclick event trigger, like zoom into country map while clicking on it.

I added code to be triggered on click event but how to zoom in or redraw the map as country map

@markmarkoh
Copy link
Owner

d3.geo has some great zoom capabilities, examples here: http://bl.ocks.org/mbostock/2374239

I have a branch that I was experimenting with, but never put things together.

If you end up getting it working like in the example I linked to, let me know! I'll see if I can bake it into the library.

@SreekeshOkky
Copy link
Author

Can i redraw the map based on the Id like 'TZA', 'RUS' etc?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants