Hi, You exactly have the right widget for it:
Check jvectror map: https://appstore.home.mendix.com/link/app/105038/
This can be done by creating or modifying the existing Google Maps widgets available. The Google Maps API supports event listeners on country level. If you are able to configure that, you can attach it to, for instance, a microflow call.
This widget I created based on the Google API can do the trick for you: