什么是图片widthAndHeightUnits的等效项

时间:2019-05-16 08:37:17

标签: javascript amcharts amcharts4

我正在尝试将地图上的某些位置显示为从amCharts版本3到版本4的圆圈,并且无法找到将widthAndHeightUnits设置为公里的方法。

我搜索了有关api的相关更改,但找不到它们。

var imageSeries = chart.series.push(new am4maps.MapImageSeries());
var imageSeriesTemplate = imageSeries.mapImages.template;       
var circle = imageSeriesTemplate.createChild(am4core.Circle);

circle.radius = 20;
circle.nonScaling = false;
circle.tooltipText = "{title}";

imageSeriesTemplate.propertyFields.latitude = "latitude";
imageSeriesTemplate.propertyFields.longitude = "longitude";

//following code has been taken from the v3 version of the script.. the    locations and title are adapted correctly
imageSeries.data = [
        {
            latitude: 53.312197,
            longitude: 8.389912,
            widthAndHeightUnits: "kilometers",
            type: "circle",
            fixedSize: false,
            color: colorYellow,
            width: width,
            title: "700001",
            description:"weiterführende Information"
        },
....
];

没有错误,但是widthAndHeightUnits似乎已被放弃,因为我找不到关于此的任何信息

0 个答案:

没有答案