Highcharts Error #22 Map does not support latitude/longitude

Leave a Comment
When you are trying to use custom GeoJSON to draw a map using Highmap, you will get this error "Highcharts Error #22 Map does not support latitude/longitude".

Reason:
  1. It is because of custom GeoJSON you had is not supported projection format of the HighMap.
  2. Maybe you have not included proj4.js file in your html file.
    <script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.6/proj4.js"></script>
    
  3. Maybe custom GeoJSON doesn't have projection (CRS) related information i.e. hc-transform in it.
    "hc-transform":{ 
        "default":{
            "crs":"+proj=mill +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +R_A +datum=WGS84 +units=m +no_defs"
        }
    }
Please refer following tutorial to create custom GeoJSON from scratch and also using same GeoJSON and draw highmaps. Custom HighMaps GeoJSON World Map Using QGIS

0 comments:

Post a Comment