Adding points and lines#

Map points and lines are added to the map by coordinates. The coordinate system used in most of our maps is a custom one, where both the X and Y values range from 0 to some thousands. The rationale for not using latitude and longitude coordinates in version 1 of the Map Collection is partly to save downloading weight, partly to not have to deal with projection on the client side, and partly because many of the maps are composite. For example Alaska is moved into the Pacific next to the US mainland on most US maps, thus Alaska would need its own projection within the same map. With the support of the proj4js library, points can be placed by latitude and longitude. See the Latitude/longitude article.

Since Highcharts v9.3 there is beta support for built-in projections, and points and lines can be added as geometry, like in geoJSON. A new version of the Map Collection is planned (as of 2021), where the maps will be encoded as topoJSON and projection handled internally in Highcharts Maps.

Points are added as x, y pairs on the same coordinate system as the map. Maplines however are given as paths. In order to ease the process of placing your own points on the map, we have created a utility script that allows you to click around in the map, then view and copy-paste the coordinates into your own map setup.