I'm trying to display Hong Kong and Bermuda on the world map.
From where should I get the feature configuration object with Polygon/Multipolygon coordinates?
like this
Code: Select all
{
type: 'Feature',
id: 'PT',
properties: {
'hc-group': 'admin0',
'hc-middle-x': 0.46,
'hc-middle-y': 0.50,
'hc-key': 'pt',
'hc-a2': 'PT',
name: 'Portugal',
labelrank: '2',
'country-abbrev': 'Port.',
subregion: 'Southern Europe',
'region-wb': 'Europe & Central Asia',
'iso-a3': 'PRT',
'iso-a2': 'PT',
'woe-id': '23424925',
continent: 'Europe'
},
geometry: {
type: 'Polygon',
coordinates: [[[3984, 7629], [3937, 7624], [3944, 7663], [3922, 7681], [3946, 7754], [3944, 7795], [4009, 7795], [4020, 7781], [3998, 7762], [3997, 7692], [3984, 7629]]]
}
}