Custom geo map points not working in highmap

487 Views Asked by At

I created a custom geo map for US region with two states highlighted geojson data. US base map and highlighted states worked.

But i am not able to point US capitals using another set of geoJson data for US Capitals. Same way I am trying to add few bubbles on different locations in the US MAP. But both points and bubbles are not working in the MAP.

What am i missing to display mappoints and mapbubbles from geojson data?

JS fiddle is https://jsfiddle.net/s9mqcefp/300/

chart = Highcharts.mapChart('container', {
    title: {
        text: 'Highmaps lat/lon demo'
    },
    series: [{
        name: 'Basemap',
        mapData: usStates,
        borderColor: '#606060',
        nullColor: 'rgba(200, 200, 200, 0.2)',
        showInLegend: true
    },
    {
        name: 'Highlighted',
        mapData: usStatesHighLight,
        type:'map',
        borderColor: '#ff0000',
        nullColor: Highcharts.getOptions().colors[7], //'rgba(200, 0,0, 0.2)',
        showInLegend: true,
        color: Highcharts.getOptions().colors[7]

    }, {
        type: 'mappoint',
        dataLabels: {
            enabled: true,
            format: 'Capital',
            allowOverlap: true
        },
        name: 'Capitals',
        mapData: usCapitals,
        color: Highcharts.getOptions().colors[5]
    },
            {
        type: 'mapbubble',
        dataLabels: {
            enabled: true,
            format: 'State',
            allowOverlap: true
        },
        name: 'Radius/Region',
        mapData: radiusData,
        color: Highcharts.getOptions().colors[3]
    }
   ]
});
0

There are 0 best solutions below