我查看了几个示例,并根据需要拼凑了我自己的世界地图,只是缺少一个细节。我可以用坐标定位地图点,但不能用国家代码定位地图点。
这是我的例子:http: //jsfiddle.net/2sk6hfvz/
{
"type": "mapbubble", // <<-- change this to 'mappoint', why doesn't ghost icons show up?
"name": "Ghosts",
"dataLabels":
{
"enabled": false
},
"marker":
{
"symbol": "url(https://cdn1.iconfinder.com/data/icons/Momentum_MatteEntireSet/32/ghost.png)"
},
mapData: mapData,
joinBy: ['iso-a2', 'code'],
data:
[
{
name: "Liège",
code: "SE",
z: 1
},
{
name: "Buble",
code: "DE",
z: 1
}
]
}
在示例中将“mapbubble”更改为“mappoint”。为什么 mappoint 设置的显示方式与 mapbubble 的显示方式不同,然后使用国家/地区代码?