Welcome to the Highcharts Maps JS (highmaps) Options Reference

These pages outline the chart configuration options, and the methods and properties of Highcharts objects.

Feel free to search this API through the search bar or the navigation tree in the sidebar.

plotOptions.mapline

A mapline series is a special case of the map series where the value colors are applied to the strokes rather than the fills. It can also be used for freeform drawing, like dividers, in the map.

Configuration options for the series are given in three levels:

  1. Options for all series in a chart are defined in the plotOptions.series object.
  2. Options for all mapline series are defined in plotOptions.mapline.
  3. Options for one single series are given in the series instance array.
Highcharts.chart('container', {
    plotOptions: {
        series: {
            // general options for all series
        },
        mapline: {
            // shared options for all mapline series
        }
    },
    series: [{
        // specific options for this series instance
        type: 'mapline'
    }]
});

TypeScript:

  • the type option must always be set.
  • when accessing an array of series, the combined set of all series types is represented by Highcharts.SeriesOptionsType . Narrowing down to the specific type can be done by checking the type property.
if (chart.options.series?.[0]?.type === mapline) {
    // code specific to the mapline series
}