[email protected]
Posts: 3
Joined: Sun Jul 24, 2022 6:03 am

How to get coordinates for Hong Kong and Bermuda

Hi Team,

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]]]
    }
  }
Any help would be greatful
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: How to get coordinates for Hong Kong and Bermuda

Hi adil143420!
Thanks for contacting us with your question!

This object is generated by some programs for example QGIS. If you want to get more information about properties in this object you can read this article: https://www.highcharts.com/docs/maps/ma ... properties

Sadly, Bermuda and Hong Kong are not included in our maps collection (https://code.highcharts.com/mapdata/), here is a related ticket about this feature: https://github.com/highcharts/map-colle ... /issues/20

If you want you can create your custom map for Hong Kong and Bermuda using steps from this article: https://www.highcharts.com/docs/maps/cu ... ojson-maps

Feel free to ask any further questions.
Kind regards!
Hubert Kozik
Highcharts Developer

Return to “Highcharts Maps”