Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need JS coder help

    Hi, i need your help! I use google vizualization script, but i cant get one thing. I need get URL call function, when i click on map - > city

    Code:
    <html>
      <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <script type='text/javascript' src='http://www.google.com/jsapi'></script>
      <script type='text/javascript'>
       google.load('visualization', '1', {'packages': ['geomap']});
       google.setOnLoadCallback(drawMap);
    
        function drawMap() {
          var data = new google.visualization.DataTable();
          data.addRows(6);
          data.addColumn('string', 'City');
          data.addColumn('number', 'Popularity');
          data.setValue(0, 0, 'Rīga');
          data.setValue(0, 1, 200);
          data.setValue(1, 0, 'Liepāja');
          data.setValue(1, 1, 300);
          var options = {};
          options['region'] = 'LV';
          options['colors'] = [0xFF8747, 0xFFB581, 0xc06000]; //orange colors
          options['dataMode'] = 'markers';
          var container = document.getElementById('map_canvas');
          var geomap = new google.visualization.GeoMap(container);
          geomap.draw(data, options);
        };
        </script>
    </head>
    <body>
    
        <div id='map_canvas'></div>
    
    </body>
    </html>

  • #2
    New to the CF scene
    Join Date
    Jul 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Here you can find examples of this script - http://code.google.com/apis/visualiz...ry/geomap.html


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •