Что эквивалентно для изображений widthAndHeightUnits - PullRequest
0 голосов
/ 16 мая 2019

Я пытаюсь обновить карту с некоторыми местоположениями, визуализированными кругами из 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, похоже, было заброшено, так как я не могу найти информациюна этом

...