jvectormap how to Display only 1 country

824 views Asked by At

Hi i have spend som time with on my project getting jvectormap to show 1 particular country (Denmark). but it will only show all the world. Hope you can help me?

And this is what I try making it do but it still shows the world:

$('#map').vectorMap(
{
    map: 'dk_mill', 
    series: 
    { regions: 
        [{ values: gdpData, scale: ['#C8EEFF', '#0071A4'], normalizeFunction: 'polynomial' }] 
    }, onRegionTipShow: function(e, el, code){ el.html(el.html()+'(GDP - '+gdpData[code]+')');
    } 
});
1

There are 1 answers

0
Sree Nath On

Please make sure that you have included the dk_mill.js file. Denmark map file