map API, jquery

ITsolutionWizard
ITsolutionWizard used Ask the Experts™
on
http://jvectormap.com/maps/countries/usa/

I used above api for usa map. if all i need is: when the state is onclick, e.g. California, then call one of my js file and all it does is to open modal, and carrier selected state.

how can i do that?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Distinguished Expert 2017
Commented:
According to this document:
Capture.JPGReplace your js code with this (lines 415-422):
  $('.jvectormap-'+cont.attr('data-projection')).vectorMap({
            map: cont.attr('data-name'),
            backgroundColor: 'transparent',
            regionStyle: {
              initial: {
                fill: '#8d8d8d'
              }
            },
         onRegionClick:function(event){
           //do something with your code
         }
          });

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial