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

Trigger showtooltip #75

Open
albertixcom opened this issue Aug 27, 2022 · 2 comments
Open

Trigger showtooltip #75

albertixcom opened this issue Aug 27, 2022 · 2 comments

Comments

@albertixcom
Copy link

Hi,
I have a html table with some countries. Clicking on country row I have a country code, so I need to show tooltip (and zoom on it if necessary), highlight country (same as mousenter event) programmatically using id of country path.
It's possible with this script ?

Alberto

@StephanWagner
Copy link
Owner

StephanWagner commented Aug 28, 2022

You can always highlight with CSS, all country paths have the class svgMap-country, sou your selector could be .svgMap-country[data-id="DE"] for example.

Of cource you could also add and remove a class to highlight: $('.svgMap-country[data-id="DE"]').addClass('my-class');

There is no automatism to zoom to a specific country, that would have to be done manually.

@albertixcom
Copy link
Author

Thank You very much

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

2 participants