ameet8486
Posts: 13
Joined: Wed Feb 14, 2018 7:31 am

missing Hong Kong,Jersey, Bermuda in world.js

http://code.highcharts.com/mapdata/custom/world.js
In above url contaion World.js file
In that Hong Kong,Jersey, Bermuda country not avaible

Is this possible to add that country in this js
Or
Provide me any svg for this country
Or
Any other solution for that
daniel_s
Posts: 753
Joined: Fri Sep 01, 2017 11:01 am

Re: missing Hong Kong,Jersey, Bermuda in world.js

hi ameet8486,

Thank you for contacting us, and welcome on our forum.
I created the new issue on our GitHub repository regarding your question above. I can tell that we have plans to update most of map regions in near future, but i cannot give you concrete date when it will be updated. If you don't have any time to wait, you could also create your own custom map or edit one of existing maps from our map collection.

Map collection: https://www.highcharts.com/docs/maps/map-collection
Reported issue: https://github.com/highcharts/highcharts/issues/8006
Custom map tutorial: https://www.highcharts.com/docs/maps/custom-maps

Best regards!
Daniel Studencki,
Highcharts Developer
ameet8486
Posts: 13
Joined: Wed Feb 14, 2018 7:31 am

Re: missing Hong Kong,Jersey, Bermuda in world.js

Hi ,
Thanks for reply ,
Actually it is very difficult to identify correct location of any country if possible kindly create SVG tag for all three country and provide us
we are planing to purchase high map licence but missing country is show stopper for us
daniel_s
Posts: 753
Joined: Fri Sep 01, 2017 11:01 am

Re: missing Hong Kong,Jersey, Bermuda in world.js

hi ameet8486,

We need more information about your expectations, so you can just precise it in GitHub issue (mentioned above) topic, and then we will know exactly what to do.

For the moment you could add missing regions as the Points by defining its longitude and latitude, because regarding Jersey and Bermuda, they are very small and it should be sufficient to add it by this way. I prepared an example to show you how to achieve that, so please refer to it.

Live example: http://jsfiddle.net/BlackLabel/htofq9s8/

Best regards!
Daniel Studencki,
Highcharts Developer
stephensellsskuid
Posts: 1
Joined: Fri Mar 16, 2018 5:31 pm

Re: missing Hong Kong,Jersey, Bermuda in world.js

I'm also failing to see Hong Kong listed here:
http://jsfiddle.net/gh/get/library/pure ... cn-all-sar

Am I missing something? Is there a map we can use that will have it separate from China?

Our goal would be to have Hong Kong show as it's own country.
ameet8486
Posts: 13
Joined: Wed Feb 14, 2018 7:31 am

Re: missing Hong Kong,Jersey, Bermuda in world.js

Hi team,

Trailing to above discussion
Live example: http://jsfiddle.net/BlackLabel/htofq9s8/
above link is showing proper country but can you provide geometry MultiPolygon coordinates so i will add to our map and i will check

Please provide SVG in below format :-

{"type":"Feature","id":"CN","properties":{"hc-group":"admin0","hc-middle-x":0.41,"hc-middle-y":0.56,"hc-key":"cn","hc-a2":"CN","name":"China","labelrank":"2","country-abbrev":"China","subregion":"Eastern Asia","region-wb":"East Asia & Pacific","isoa3":"CHN","iso-a2":"CN","woe-id":"23424781","continent":"APAC ex. Japan"},"geometry":{"type":"MultiPolygon","coordinates":[[[[7429,7050],[7456,7076],[7488,7081],[7498,7067],[7481,7036],[7459,7021],[7429,7031],[7429,7050]]],[[[6842,7305],[6840,7326],[6819,7322],[6773,7330],[6756,7323],[6729,7336],[6699,7367],[6683,7364],[6640,7401],[6608,7397],[6541,7434],[6530,7473],[6563,7480],[6542,7507],[6546,7534],[6527,7544],[6513,7572],[6500,7571],[6482,7577],[6459,7605],[6416,7624],[6411,7627],[6426,7631],[6423,7675],[6395,7677],[6389,7707],[6399,7728],[6446,7748],[6450,7736],[6482,7759],[6521,7763],[6529,7774],[6584,7803],[6602,7838],[6581,7906],[6646,7924],[6668,7986],[6719,7972],[6741,7981],[6750,8032],[6795,8058],[6801,8059],[6810,8061],[6814,8039],[6847,8016],[6885,8003],[6906,7963],[6901,7912],[6979,7903],[7034,7879],[7064,7822],[7220,7815],[7232,7803],[7282,7788],[7326,7787],[7372,7807],[7453,7813],[7526,7857],[7511,7885],[7528,7908],[7575,7895],[7603,7919],[7637,7921],[7664,7953],[7714,7968],[7756,7963],[7762,7975],[7722,8015],[7698,8015],[7696,8015],[7691,8008],[7642,8005],[7632,8021],[7667,8086],[7699,8074],[7742,8093],[7740,8107],[7768,8158],[7788,8176],[7766,8201],[7790,8222],[7862,8234],[7935,8210],[8005,8075],[8043,8071],[8086,8027],[8093,8004],[8135,8005],[8192,8031],[8204,8005],[8185,7988],[8178,7951],[8146,7907],[8138,7916],[8121,7913],[8090,7899],[8099,7870],[8091,7827],[8078,7815],[8057,7831],[8053,7812],[8004,7796],[8007,7774],[7962,7785],[7943,7758],[7895,7730],[7838,7706],[7799,7682],[7804,7705],[7833,7744],[7800,7758],[7778,7733],[7751,7722],[7736,7698],[7699,7695],[7708,7662],[7731,7662],[7749,7627],[7787,7651],[7812,7637],[7845,7637],[7787,7604],[7742,7557],[7773,7532],[7791,7478],[7819,7454],[7824,7420],[7794,7408],[7836,7385],[7812,7368],[7814,7337],[7794,7326],[7749,7262],[7758,7244],[7731,7235],[7661,7167],[7610,7163],[7593,7144],[7576,7170],[7574,7142],[7489,7118],[7466,7084],[7461,7122],[7422,7134],[7409,7122],[7366,7149],[7372,7161],[7329,7180],[7289,7154],[7245,7162],[7234,7150],[7217,7146],[7222,7111],[7206,7124],[7177,7120],[7170,7139],[7146,7143],[7157,7171],[7138,7175],[7130,7203],[7101,7195],[7103,7234],[7133,7260],[7132,7313],[7098,7343],[7092,7333],[7057,7370],[7032,7360],[7012,7369],[6953,7324],[6923,7319],[6882,7338],[6842,7305]]]]}},
daniel_s
Posts: 753
Joined: Fri Sep 01, 2017 11:01 am

Re: missing Hong Kong,Jersey, Bermuda in world.js

hi,
stephensellsskuid wrote: I'm also failing to see Hong Kong listed here:
http://jsfiddle.net/gh/get/library/pure ... cn-all-sar

Am I missing something? Is there a map we can use that will have it separate from China?
It's included, but it isn't added as one region. It's divided for "Central and Western", "Wan Chai", "Eastern" and "Southern" regions.
ameet8486 wrote: Please provide SVG in below format
I remaked all Hong Kong regions for one MultiPolygon as you wish. Here is the code and example how to use it combined with China:

Code: Select all

{"type":"Feature","id":"CN.999","properties":{"hc-group":"admin1","hc-middle-x":0.53,"hc-middle-y":0.42,"hc-key":"cn-hk","hc-a2":"CA","labelrank":"20","hasc":"HK.","alt-name":null,"woe-id":"24703128","subregion":null,"fips":null,"postal-code":null,"name":"Hong Kong Island","country":"Hong Kong S.A.R.","type-en":null,"region":"Hong Kong Island","longitude":"114.204","woe-name":"Hong Kong Island","latitude":"22.2402","woe-label":null,"type":null},"geometry":{"type":"MultiPolygon","coordinates":[[[[6349,2368],[6355,2372],[6360,2370],[6360,2365],[6352,2368],[6349,2368]]], [[[6360,2365],[6360,2370],[6363,2370],[6366,2369],[6365,2366],[6362,2365],[6360,2365]]], [[[6365,2366],[6366,2369],[6363,2370],[6375,2370],[6378,2363],[6374,2365],[6365,2366]]], [[[6349,2368],[6352,2368],[6360,2365],[6362,2365],[6365,2366],[6374,2365],[6378,2363],[6369,2350],[6349,2368]]]]}}
Live example: http://jsfiddle.net/6442f3gf/14/

Also please visit issue link, because there you can join to discussion about that. You can find it here: https://github.com/highcharts/highcharts/issues/8006

Best regards!
Daniel Studencki,
Highcharts Developer
ameet8486
Posts: 13
Joined: Wed Feb 14, 2018 7:31 am

Re: missing Hong Kong,Jersey, Bermuda in world.js

Hi,
Using below SVG i didn't saw Hong kong in my map

{"type":"Feature","id":"CN.999","properties":{"hc-group":"admin1","hc-middle-x":0.53,"hc-middle-y":0.42,"hc-key":"cn-hk","hc-a2":"CA","labelrank":"20","hasc":"HK.","alt-name":null,"woe-id":"24703128","subregion":null,"fips":null,"postal-code":null,"name":"Hong Kong Island","country":"Hong Kong S.A.R.","type-en":null,"region":"Hong Kong Island","longitude":"114.204","woe-name":"Hong Kong Island","latitude":"22.2402","woe-label":null,"type":null},"geometry":{"type":"MultiPolygon","coordinates":[[[[6349,2368],[6355,2372],[6360,2370],[6360,2365],[6352,2368],[6349,2368]]], [[[6360,2365],[6360,2370],[6363,2370],[6366,2369],[6365,2366],[6362,2365],[6360,2365]]], [[[6365,2366],[6366,2369],[6363,2370],[6375,2370],[6378,2363],[6374,2365],[6365,2366]]], [[[6349,2368],[6352,2368],[6360,2365],[6362,2365],[6365,2366],[6374,2365],[6378,2363],[6369,2350],[6349,2368]]]]}}

and Live example: http://jsfiddle.net/6442f3gf/14/
also doesn't contain hong kong
Can you provide proper svg??
daniel_s
Posts: 753
Joined: Fri Sep 01, 2017 11:01 am

Re: missing Hong Kong,Jersey, Bermuda in world.js

hi ameet8486,

I'm sure it exists, but to see that you've to zoom in your map (in my example, attachment nr.1).

If you would like to add Hong Kong to world map, you've to change coordinates and add it as a region below:

Code: Select all

Highcharts.maps['custom/world'].features.push({"type":"Feature","id":"HK","properties":{"hc-group":"admin0","hc-middle-x":0.41,"hc-middle-y":0.56,"hc-key":"hk","hc-a2":"HK","name":"Hong Kong","labelrank":"2","country-abbrev":"China","subregion":"Eastern Asia","region-wb":"East Asia & Pacific","iso-a3":"HK","iso-a2":"HK","woe-id":"	24865698","continent":"Asia"},"geometry":{"type":"Polygon","coordinates":[[[7579,7118],[7585,7122],[7590,7120],[7596,7119],[7605,7120],[7608,7113],[7599,7100],[7579,7118]]]}})
Here is the example with World Map and how to assign the data to that region: http://jsfiddle.net/nsuv3bgx/

Best regards!
Attachments
Screen Shot 2018-03-19 at 15.45.35.png
Screen Shot 2018-03-19 at 15.45.35.png (32.99 KiB) Viewed 4947 times
Daniel Studencki,
Highcharts Developer
ameet8486
Posts: 13
Joined: Wed Feb 14, 2018 7:31 am

Re: missing Hong Kong,Jersey, Bermuda in world.js

Hi,

above svg is working fine for Hong Kong
Can you pls send Bermuda and Jersey Svg format
daniel_s
Posts: 753
Joined: Fri Sep 01, 2017 11:01 am

Re: missing Hong Kong,Jersey, Bermuda in world.js

hi ameet8486,

I take previous shape (Hong Kong) from existing map, and adjust its parameters to your needs. I cannot provide you an SVG of Bermuda and Jersey, because it isn't already implemented in any of existing maps, so we have to generate it. Please follow the issue on our GitHub which I mentioned above (https://github.com/highcharts/highcharts/issues/8006) and calmly wait for map updates.

Best regards!
Daniel Studencki,
Highcharts Developer
ameet8486
Posts: 13
Joined: Wed Feb 14, 2018 7:31 am

Re: missing Hong Kong,Jersey, Bermuda in world.js

Hi,

I saw some example regarding new jersey in our highmaps demo
pls refer below link
https://code.highcharts.com/mapdata/cou ... -nj-all.js

using this can u provide me svg for world map
ameet8486
Posts: 13
Joined: Wed Feb 14, 2018 7:31 am

Re: missing Hong Kong,Jersey, Bermuda in world.js

Hi,

Can u provide Jersey and Bermuda like hong kong
means same shape but location is Jersey and Bermuda
Please reply
daniel_s
Posts: 753
Joined: Fri Sep 01, 2017 11:01 am

Re: missing Hong Kong,Jersey, Bermuda in world.js

hi ameet8486,

Sorry, but now I don't understand something. As you mentioned above you need the Jersey map so I don't exactly now why are you sending me the New Jersey map and you telling me to refer to it. After all, these are two different regions, so please precise what do you need. I want to notify that the examples attached above shows how to import some SVG to your map, so you can do it by yourself basing on them. If you'll encounter some problems please describe it here and I'll try to help you with solving them.

Best regards!
Daniel Studencki,
Highcharts Developer
ameet8486
Posts: 13
Joined: Wed Feb 14, 2018 7:31 am

Re: missing Hong Kong,Jersey, Bermuda in world.js

Hi,

Sorry for new jersey
Actually we required Jersey and Bermuda in our world.js

Previously you was giving one line i.e below link
http://jsfiddle.net/BlackLabel/htofq9s8/
In this you mention three points for Jersey, Bermuda and Hongkong
We got HongKong SVG Like that can you share me Jersey and Bermuda svg, No problem with shape we require some place to show client Jersey and Bermuda

Return to “Highcharts Maps”