Hello,

I'm trying to do some geomaps work, what I need is the region to be
clicked and link to one part of my site...
This I have done all correct.

But there is one thing that I wanna know how to remove from my geomap
It's the population number or whatever that displays

That small box on left bottom corner
is it possible to turn it off???

I'm not going to use it so I would like to remove it from my map
I only need to add some color to countries that are active links

My test is here:
http://www.berseck.com/maps

And my code is this:

function doSomething(regionData){
        switch(regionData){
            case "CA":
                location.href = "http://www.google.ca";;
                break;
            case "US":
                location.href = "http://www.google.com";;
                break;
            case "DE":
                location.href = "http://www.google.de";;
                break;
            case "RU":
                location.href = "http://www.google.ru";;
                break;
            case "BR":
                location.href = "http://www.google.com.br";;
                break;
            case "AU":
                location.href = "http://www.google.au";;
                break;
            case "CN":
                location.href = "http://www.google.cn";;
                break;
            default:
                alert("There is no magazine for your location");
                break;
        }
    }

    google.load('visualization', '1', {'packages': ['geomap']});
    google.setOnLoadCallback(drawMap);

    function drawMap() {
        var data = new google.visualization.DataTable();
        data.addRows(8);
        data.addColumn('string', 'Country');
        data.setValue(0, 0, 'Germany');
        data.setValue(1, 0, 'United States');
        data.setValue(2, 0, 'UK');
        data.setValue(3, 0, 'RU');
        data.setValue(4, 0, 'India');
        data.setValue(5, 0, 'China');
        data.setValue(6, 0, 'Australia');
        data.setValue(7, 0, 'Brazil');

        var options = {};
        options['dataMode'] = 'regions';
        options['region'] = type;
        options['showLegend'] = 'false';

        var container = document.getElementById('map_canvas');
        geomap = new google.visualization.GeoMap(container);

        google.visualization.events.addListener(
        geomap, 'regionClick', function(e) {
            doSomething(e['region']);
        });

        geomap.draw(data, options);
    };


If anyone knows how to remove that box I would appreciate that!

Thanks,
berseck

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to