为什么 tooltipPosition = "fixed" 不适用于我的地图?我阅读了文档并按照它说的做了。(https://www.amcharts.com/docs/v4/reference/tooltip/)
function addSeries(country, tooltipHTML) {
let newSeries = chart.series.push(new am4maps.MapPolygonSeries());
newSeries.useGeodata = true;
newSeries.include = country;
newSeries.mapPolygons.template.fill = am4core.color("#4D7EAA");
newSeries.fill = am4core.color("#4D7EAA");
newSeries.mapPolygons.template.tooltipText = tooltipHTML;
newSeries.mapPolygons.template.tooltipHTML = tooltipHTML;
newSeries.tooltip.getFillFromObject = false;
newSeries.tooltip.background.fill = am4core.color("#000");
newSeries.tooltip.tooltipPosition = "fixed";
newSeries.tooltip.x = 10;
newSeries.tooltip.trackable = false;
newSeries.tooltip.y = 30;
newSeries.mapPolygons.template.events.on("over", over);
newSeries.mapPolygons.template.events.on("out", out);
newSeries.cursorOverStyle = am4core.MouseCursorStyle.pointer;
let hs = newSeries.mapPolygons.template.states.create("hover");
hs.properties.fill = am4core.color("#004685");
}