Can I place Alaska at top left corner of map area

34 views
Skip to first unread message

saclines

unread,
Aug 29, 2012, 11:12:27 AM8/29/12
to google-visua...@googlegroups.com
Hi,

When I see America's map, Alaska is shown at the bottom. Is there any way that it can be shown at the top left corner of the map area.

Following is my code

<html>
  <head>
    <script type='text/javascript' src='https://www.google.com/jsapi'></script>
    <script type='text/javascript'>
     google.load('visualization', '1', {'packages': ['geochart']});
     google.setOnLoadCallback(drawMarkersMap);

      function drawMarkersMap() {
      var data = google.visualization.arrayToDataTable([
        ['City',   'Population', 'Area'],
        ['Chicago',      2761477,    1285.31],
        ['Los Angels',     1324110,    181.76]
      ]);

      var options = {
        region: 'US',
        displayMode: 'markers',
        colorAxis: {colors: ['green', 'blue']}
      };

      var chart = new google.visualization.GeoChart(document.getElementById('chart_div'));
      chart.draw(data, options);
    };
    </script>
  </head>
  <body>
    <div id="chart_div" style="width: 900px; height: 500px;"></div>
  </body>
</html>

asgallant

unread,
Aug 29, 2012, 12:16:43 PM8/29/12
to google-visua...@googlegroups.com
No, you can't re-position map elements.
Reply all
Reply to author
Forward
0 new messages