datamaps icon indicating copy to clipboard operation
datamaps copied to clipboard

Show popup on hover on small states labels

Open fadifannoun opened this issue 7 years ago • 4 comments

How to show popup when hovering over small states labels (DC, MD, ...) ?

fadifannoun avatar Sep 27 '17 11:09 fadifannoun

simply set true the

PopUpOnHover

hamza005 avatar Oct 03 '17 14:10 hamza005

This apply to hove rover the whole state/area, but when you hover over small states label it won't work

fadifannoun avatar Oct 04 '17 22:10 fadifannoun

can you please elaborate the question or mention the code here...

hamza005 avatar Oct 05 '17 14:10 hamza005

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. image

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.

bmarcio20 avatar Mar 17 '21 18:03 bmarcio20