jvectormap icon indicating copy to clipboard operation
jvectormap copied to clipboard

How to set a region to "hover" state programmatically?

Open picks44 opened this issue 6 years ago • 1 comments

How can I set Taiwan region to "hover" mode (colors + opacity + cursor...) when I actually hover China region, using Javascript/JQuery ?

picks44 avatar May 22 '18 08:05 picks44

If you mean, that you want to highlight TW when mose is over China. Then I would recommend changing the jquery-jvectormap-world-mill.js, where you would take the TW coordinates and place them into China path. Later, remove TW part. This way, these coordinates will be part of China region and you are done. Nothing else to do.

fdominik avatar May 26 '18 05:05 fdominik