@highcharts/map-collection

    1.1.4 • Public • Published

    Highmaps - 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.js:

    <script src="https://code.highcharts.com/mapdata/custom/world.js"></script>

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

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

    Install from npm

    npm i @highcharts/map-collection
    

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

    var Highcharts = require('highcharts/highmaps.js'),
        map = require('@highcharts/map-collection/custom/world.geo.json');
    
    Highcharts.mapChart('container', {
      chart: {
        map: geojson
      },
      // ...
    });

    Install

    npm i @highcharts/map-collection

    DownloadsWeekly Downloads

    27,057

    Version

    1.1.4

    License

    SEE LICENSE IN LICENSE.md

    Unpacked Size

    111 MB

    Total Files

    2026

    Last publish

    Collaborators

    • torsteinhonsi
    • cvasseng
    • blacklabel