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

Mouseover issues #424

Open
marie-dialogues opened this issue Jun 4, 2021 · 0 comments
Open

Mouseover issues #424

marie-dialogues opened this issue Jun 4, 2021 · 0 comments

Comments

@marie-dialogues
Copy link

I use this great plugin to create a map (from a svg), linked to a json file where I put all the datas : cities (name, text, lat, lon...).

To display these datas on click, I've done this :

eventHandlers: { click: function (e, id, mapElem, textElem) { getCityData(cities[id]) } }

It works everywhere but not all the time. The mouse hover event seems to be slower and doesn't work at the first time on every area(path).

I tried to use another map from your website, the issue is still there, so I'm wondering if there is a conflict with my own code or if I haven't used this eventHandlers correctly. Maybe that's because this map is resized in a container ?

So, if anyone has an idea, thank you for your help :)

  • Mapael version: 2.2.0
  • Raphael version: raphael/2.2.7
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