【发布时间】:2014-10-08 18:57:35
【问题描述】:
出于某种原因,在我正在开发的网站上,“旧金山”正在 Google GeoChart 可视化中在路易斯安那州放置一个标记。我什至尝试将其更改为“旧金山,加利福尼亚州”,甚至“旧金山,加利福尼亚州,美国”,它仍在路易斯安那州进行绘制。
您可以在这里看到不正确的标记:http://galmeetsglam.com/travel/
我的部分代码:
var data = new google.visualization.DataTable();
data.addColumn('string', 'Slug');
data.addColumn('string', 'City');
data.addColumn('number', 'Value');
data.addColumn({type: 'string', role: 'tooltip', p:{html:true}});
/* Locations */
data.addRows([
['london', 'London', 1, '<h1 class="tooltip-h1">London</h1>'],
['london', 'London', 1, '<h1 class="tooltip-h1">London</h1>'],
['new-york-city', 'New York City', 1, '<h1 class="tooltip-h1">New York City</h1>'],
['san-francisco-2', 'San Francisco', 1, '<h1 class="tooltip-h1">San Francisco</h1>'],
['san-francisco-2', 'San Francisco', 1, '<h1 class="tooltip-h1">San Francisco</h1>'],
]);
奇怪的是,其他城市(伦敦和纽约)的规划还不错。不知道为什么 SF 搞砸了。
有什么想法吗?
【问题讨论】:
标签: google-maps google-api google-visualization