How to event listen and programatically highlight specific regions of my India map?

I want the map of India and the list with text for the regions to listen to each other so that when the mouse pointer is hovering above a region then the corresponding region name gets underlined, and similarly if I hover over the name of the region to the left then the corresponding area on the map should be highlighted with the pink color. Can you help me? I can add code to listen for the hover event, but I’m not sure how to programmatically highlight the regions?
I can listen for clicking on a region and clicking on a region name but how do I programatically highlight the corresponding region when selecting the text?

enter image description here

<!DOCTYPE html>

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8">
    <meta name="keywords"
          content="Houses Apartments, Vacation homes, Offices, Land, Flatmates,Paying Guest, Other real estate, Cars, Motorcycles, Accessories  parts, Trucks, Other vehicles, Home  Garden, Clothing, For Kids (Toys  Clothes), Jewelry  Watches, Hobbies, Sports  Bicycles, Movies, Books  Magazines, Pets, Tickets, Art  Collectibles, Music  Instruments, Computers  Accessories, TV, Audio, Video, Cameras, Cellphones  gadgets, Video games  consoles, Job offers, Resumes, Services, Classes, Professional,Office equipment, Other,  ">
    <meta name="description"
          content="Find jobs, cars, houses, mobile phones and properties for sale in your region conveniently. Find the best deal among {{count}} free ads online!">

    <title>Free classifieds in India -</title>

    <link href="/static/css/koolindex_in.css?0.238133053892" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="/static/js/jquery-1.10.2.min.js?0.238133053892"></script>
{% include "kooltopbar.html" %}

    <script type='text/javascript' src=''></script>
    <script type='text/javascript'>

        function drawMap() {
 var data = google.visualization.arrayToDataTable([

         ['Andhra Pradesh'],
['Arunachal Pradesh'],
['Himachal Pradesh'],
['Jammu and Kashmir'],
['Madhya Pradesh'],
['Tamil Nadu'],
['Uttar Pradesh'],
['West Bengal'],
['Daman and Diu'],
['Dadra and Nagar Haveli'],
['Andaman and Nicobar Islands']

 var options = {
          backgroundColor: '#81d4fa',
          datalessRegionColor: '#ffc801',
     resolution: 'provinces',
    var container = document.getElementById('mapcontainer');
    var chart = new google.visualization.GeoChart(container);

    function myClickHandler(){
        var selection = chart.getSelection();
        var message = '';
        for (var i = 0; i < selection.length; i++) {
            var item = selection[i];
           // if (item.row != null && item.column != null) {
                message += '{row:' + item.row + ',column:' + item.column + '}';
            //} else
             if (item.row != null) {
                message += '{row:' + item.row + '}';
            //} else if (item.column != null) {
              //  message += '{column:' + item.column + '}';
        if (message == '') {
            message = 'nothing';
        //alert('You selected ' + message);

        if (item.row==2) {
             window.location = "/andhra_pradesh/";
        if (item.row==3) {
             window.location = "/arunachal_pradesh/";
        if (item.row==4) {
             window.location = "/assam/";
        if (item.row==6) {
             window.location = "/chhattisgarh/";
        if (item.row==7) {
             window.location = "/goa/";
        if (item.row==8) {
             window.location = "/gujarat/";
        if (item.row==9) {
             window.location = "/haryana/";
        if (item.row==10) {
             window.location = "/himachal_pradesh/";
        if (item.row==11) {
             window.location = "/jammu_kashmir/";
        if (item.row==12) {
             window.location = "/jharkhand/";
        if (item.row==13) {
             window.location = "/karnataka/";
        if (item.row==14) {
             window.location = "/kerala/";
        if (item.row==15) {
             window.location = "/madhya_pradesh/";
        if (item.row==16) {
             window.location = "/maharashtra/";
        if (item.row==17) {
             window.location = "/manipur/";
        if (item.row==18) {
             window.location = "/meghalaya/";
        if (item.row==19) {
             window.location = "/mizoram/";
        if (item.row==20) {
             window.location = "/nagaland/";
        if (item.row==21) {
             window.location = "/orissa/";
        if (item.row==22) {
             window.location = "/punjab/";
        if (item.row==23) {
             window.location = "/rajasthan/";
        if (item.row==24) {
             window.location = "/sikkim/";
        if (item.row==25) {
             window.location = "/tamil_nadu/";
        if (item.row==25) {
             window.location = "/tripura/";
        if (item.row==28) {
             window.location = "/uttar_pradesh/";
        if (item.row==29) {
             window.location = "/west_bengal/";
        if (item.row==36) {
             window.location = "/andaman_nicobar_islands/";
    }, 'select', myClickHandler);
    chart.draw(data, options);
google.load('visualization', '1', {packages: ['geochart'], callback: drawMap});


<div id="wrapper">

<!--[if lt IE 7]>
<div class="alert-outer alert-error">
    <a href="#" class="alert-closer" title="close this alert" onclick="removeIeNotification(this); return false;">×</a>

    <div class="alert-inner">
        <span><strong>You are using an outdated version of Internet Explorer.</strong> For a faster, safer browsing experience, upgrade today!</span>


    <h1 id="logo" class="sprite_index_in_in_en_logo spritetext"> - The right choice for buying &amp;
        selling in india</h1>

    <script async src="//"></script>
    <!-- v2 -->
    <ins class="adsbygoogle"
        (adsbygoogle = window.adsbygoogle || []).push({});

<div style="width: 100%; overflow: hidden;">
    <div style="width: 768px; float: left;"> <script async src="//"></script>
<!-- front leaderboard -->
<ins class="adsbygoogle"
(adsbygoogle = window.adsbygoogle || []).push({});
</script> </div>
    <div id="post3" style="margin-left: 735px;"> <a href="/ai" id="ad2">Post your ad for free</a> </div>

<div class="main">
<div class="column_left">
    <div class="box">

            <li>KoolBusiness is easy, free, and kool.</li>
            <li>Buy and sell <a href="/india/cars-for_sale">cars</a>, check our <a href="/india/real_estate">real
                section, find <a href="/india/jobs">jobs</a>, and much more.
            <li>Check our <strong><a href="/india">{{count}} ads online</a></strong> and find what you are looking for
                your region or in all India.


    <div id="regions">

        <div class="region_links_one">
            <ul class="regions_one">
                <li><a id="region_8" class="region" href="">Andhra
                <li><a id="region_9" class="region" href="">Arunachal
                <li><a id="region_10" class="region"
                <li><a id="region_11" class="region"
                <li><a id="region_12" class="region"
                <li><a id="region_13" class="region"
                <li><a id="region_14" class="region" href="">Gujarat</a>
                <li><a id="region_15" class="region" href="">Haryana</a>
                <li><a id="region_16" class="region" href="">Himachal
                <li><a id="region_17" class="region" href="">Jammu
                <li><a id="region_18" class="region" href="">Jharkhand</a>
                <li><a id="region_19" class="region" href="">Karnataka</a>
                <li><a id="region_20" class="region" href="">Kerala</a>
                <li><a id="region_21" class="region" href="">Madhya
            <ul class="regions_two">
                <li><a id="region_22" class="region"
                <li><a id="region_23" class="region" href="">Manipur</a>
                <li><a id="region_24" class="region" href="">Meghalaya</a>
                <li><a id="region_25" class="region" href="">Mizoram</a>
                <li><a id="region_26" class="region" href="">Nagaland</a>
                <li><a id="region_27" class="region" href="">Orissa</a>
                <li><a id="region_28" class="region" href="">Punjab</a>
                <li><a id="region_29" class="region" href="">Rajasthan</a>
                <li><a id="region_30" class="region" href="">Sikkim</a>
                <li><a id="region_31" class="region" href="">Tamil
                <li><a id="region_32" class="region" href="">Tripura</a>
                <li><a id="region_34" class="region"
                <li><a id="region_33" class="region" href="">Uttar
                <li><a id="region_35" class="region" href="">West
        <div class="region_links_two">
            <!-- ads here -->
            <h2>Union territories</h2>

            <ul class="regions_one">
                <li><a class="region" href="">Delhi</a></li>
                <li><a class="region" href="">Lakshadweep</a></li>
                <li><a class="region" href="">Daman &amp; Diu</a>
                <li><a class="region" href="">Dadra &amp; Nagar
            <ul class="regions_two">
                <li><a class="region" href="">Chandigarh</a></li>
                <li><a class="region" href="">Pondicherry</a></li>
                <li><a class="region" href="">Andaman &amp;

<div id="my_wrapper">

<div id="mapcontainer"></div>
<div id="gads" style="clear:both">

<script async src="//"></script>
<!-- frontpagebelowmap -->
<ins class="adsbygoogle"
(adsbygoogle = window.adsbygoogle || []).push({});


<footer class="nohistory columns">

    <p class="first">A good deal is just around the corner!</p>

    <p>KoolBusiness is the right choice for safe buying and selling in India: a free classifieds website where you
        can buy and sell almost everything.</p>

    <p><a href="/ai">Post an ad for free</a> or browse through our categories. You will find thousands of free
        classifieds for cars, houses, mobile phones and gadgets, computers, pets and dozens of items and services in
        your state or union territory.</p>


        <strong>KoolBusiness does not charge any fee and does not require registration.</strong> Every
        ad is checked so we can give you the highest quality possible for the ads on our site. That’s why
        KoolBusiness is the most convenient, easiest to use and most complete free ads site in India.</p>

    <div id="world_sites">





84 thoughts on “How to event listen and programatically highlight specific regions of my India map?”

Leave a Comment