@highcharts/map-collection

2.3.0 • Public • Published

Highcharts Map Collection

Website | API | Demo | Issues

License

The use of the maps in this collection requires that you follow our terms and conditions that are stated in License.md.

Installation

Install from our CDN

All our maps can be loaded from code.highcharts.com/mapdata. The following example loads the map custom/world.topo.json:

const topology = await fetch(
    'https://code.highcharts.com/mapdata/custom/world.topo.json'
).then(response => response.json());

After the map is loaded in the browser then you can use it in Highcharts Maps as following:

Highcharts.mapChart('container', {
  chart: {
    map: topology
  },
  // ...
});

Install from npm

npm i @highcharts/map-collection

To load a map in Node.js and use it in Highcharts Maps you can do the following:

var Highcharts = require('highcharts/highmaps.js'),
    map = require('@highcharts/map-collection/custom/world.topo.json');

Highcharts.mapChart('container', {
  chart: {
    map: topojson
  },
  // ...
});

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.3.013,209latest

Version History

VersionDownloads (Last 7 Days)Published
2.3.013,209
2.2.06,173
2.1.011,583
2.0.19,246
2.0.0915
1.1.410,073
1.1.35,830
1.1.2595

Package Sidebar

Install

npm i @highcharts/map-collection

Weekly Downloads

57,624

Version

2.3.0

License

SEE LICENSE IN LICENSE.md

Unpacked Size

117 MB

Total Files

2123

Last publish

Collaborators

  • oysteinmoseng
  • jszuminski
  • jtistel
  • karol.kolodziej
  • khlieng
  • ppotaczek
  • cvasseng
  • bre1470
  • torsteinhonsi