Highcharts Highmaps 如何使用 hc-transform 改变投影

Highcharts Highmaps How to change projection with hc-transform

我用 Highmaps 制作了这张地图,看起来不错:see fiddle

现在我想使用另一个投影并创建这个 geojson file with pseudo mercator and added hc-transform. Unfortunately the map is not displayed: see fiddle

这就是 geojson 的样子:

    Highcharts.maps["custom/europe-nuts"] = {
"type": "FeatureCollection",
"name": "worldmap",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::3857" } },
"hc-transform": {
    "default": {
        "crs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0 +lon_0=0 +x_0=0 +y_0=0 +k=1 +units=m +nadgrids=@null +wktext +no_defs"
    }
},

出了什么问题?

检查您的开发者控制台。发生错误是因为您的要素几何属性之一设置为 null.

我发现是你这行代码:

{ "type": "Feature", "properties": { "hc-key": "AQ", "WB_A2": "-99", "NAME_DE": "Antarktika" }, "geometry": null },