我正在为美国制作 amCharts amMap。我需要在地图上实现标记。我正在关注这个例子,但它没有按预期工作。标记未正确显示。
代码
var map = AmCharts.makeChart("chartdiv", {
type: "map",
"theme": "light",
imagesSettings: {
rollOverColor: "#089282",
rollOverScale: 3,
selectedScale: 3,
selectedColor: "#089282",
color: "#13564e"
},
colorSteps: 10,
dataProvider: {
map: "usaLow",
images: [{
zoomLevel: 5,
scale: 0.5,
title: "Dallas",
latitude: 32.82092,
longitude: -97.0115
}, {
zoomLevel: 5,
scale: 0.5,
title: "Florida",
latitude: 25.7824,
longitude: -80.3011
}]
},
areasSettings: {
autoZoom: false,
unlistedAreasColor: "#81c5e8"
},
});