bjornd / jvectormap

jvectormap.com
GNU Affero General Public License v3.0
1.38k stars 431 forks source link

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

Open picks44 opened 6 years ago

picks44 commented 6 years ago

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

fdominik commented 6 years ago

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.