Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Design Studio
Viewing all articles
Browse latest Browse all 4041

Google Visualization Geomap -> Regions

$
0
0

Hi,

 

I could get the example with Google Maps and Google Maps Data running in DS 1.3.

But, I do not know how to implement the following example code from Google:

Any idea how to do it?

We need regions and not markers.

And this example is very close to what we want.

 

Roland

 

<html>

<head>

  <script type='text/javascript' src='https://www.google.com/jsapi'></script>

  <script type='text/javascript'>

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

   google.setOnLoadCallback(drawMap);

 

    function drawMap() {

      var data = google.visualization.arrayToDataTable([

        ['Country', 'Popularity'],

        ['Germany', 200],

        ['United States', 300],

        ['Brazil', 400],

        ['Canada', 500],

        ['France', 600],

        ['RU', 700]

      ]);

 

      var options = {};

      options['dataMode'] = 'regions';

 

      var container = document.getElementById('map_canvas');

      var geomap = new google.visualization.GeoMap(container);

      geomap.draw(data, options);

  };

  </script>

</head>


Viewing all articles
Browse latest Browse all 4041

Trending Articles