datamaps
datamaps copied to clipboard
Show popup on hover on small states labels
How to show popup when hovering over small states labels (DC, MD, ...) ?
simply set true the
PopUpOnHover
This apply to hove rover the whole state/area, but when you hover over small states label it won't work
can you please elaborate the question or mention the code here...
Hello @hamza005! I believe that what @fadifannoun is trying to expose here is that when using USA map, there is a state that is so little that is harder to spot (District Columbia - DC) (screenshot attached). Taking this into account, I believe that it might be useful to have the opportunity to hover over the labels (specially those marked as NE labels
in the screenshot) and show the popup as if you were hovering the actual state area.
I also got here because I'm finding it hard to display the popup when hovering over those states.
Also, this might be a duplicate from #284 and #285
Another way out I try to use is to add a hover event listener on the labels, but haven't succeded. Also, there is an issue about that in #328.
Any help would be appreciated. Let me know if you need code examples. I don't see that being necessary, but maybe to clarify further.
Thanks in advance.
EDIT: On further reading, I've found that @markmarkoh closed #133 on an because of an open PR (#169) that also provides the ability to hover over the state names if I'm not mistaken.