highcharts / map-collection-dist

Other
32 stars 37 forks source link

Revising Western Sahara borders #87

Open yogeshtekhne opened 3 years ago

yogeshtekhne commented 3 years ago

Western Sahara(Sahrawi Arab Democratic Republic) is highly recognized by many countries nowadays located in the African continent. its borders have been changed from earlier and it's visible in Google Maps as well, kindly find the attachment for reference.

But unfortunately, this is not updated in the highchart's Africa map. The link to the Africa map can be found here https://code.highcharts.com/mapdata/custom/africa.svg. I request you to kindly add the revised border of Western Sahara as per the google map in your Africa map so that we can display this properly for our client's app.

Many thanks in advance.

Screenshot 2021-06-24 at 1 15 43 PM
yogeshtekhne commented 3 years ago

Hi @KacperMadej, any update on the border change request?

KacperMadej commented 3 years ago

Apologies for the long reply time. Here's a workaround: you could use the modified map (in the HTML tab of the demo) - https://jsfiddle.net/BlackLabel/cm6qwjtp/1/

yogeshtekhne commented 3 years ago

Thanks for the solution @KacperMadej, I appreciate it. Could you please provide the same in SVG?

KacperMadej commented 3 years ago

@yogeshtekhne Here's the SVG with the same modifications. (GitHub doesn't support SVG files as attachments so below is the file content)

Click to expand and show the code ```svg Map version: 1.1.3 Copyright (c) 2020 Highsoft AS, Based on data from Natural Earth Africa Uganda 3 Uga. Eastern Africa Sub-Saharan Africa UGA UG 23424974 Africa 0.59 0.45 ug UG Nigeria 2 Nigeria Western Africa Sub-Saharan Africa NGA NG 23424908 Africa 0.50 0.45 ng NG Sao Tome and Principe 6 S.T.P. Middle Africa Sub-Saharan Africa STP ST 23424966 Africa 0.55 0.50 st ST United Republic of Tanzania 3 Tanz. Eastern Africa Sub-Saharan Africa TZA TZ 23424973 Africa 0.47 0.49 tz TZ Sierra Leone 4 S.L. Western Africa Sub-Saharan Africa SLE SL 23424946 Africa 0.33 0.62 sl SL Guinea Bissau 6 GnB. Western Africa Sub-Saharan Africa GNB GW 23424929 Africa 0.55 0.50 gw GW Cape Verde 4 C.Vd. Western Africa Sub-Saharan Africa CPV CV 23424794 Africa 0.64 0.89 cv CV Seychelles 6 Syc. Eastern Africa Sub-Saharan Africa SYC SC 23424941 Seven seas (open ocean) 0.63 0.45 sc SC Tunisia 3 Tun. Northern Africa Middle East & North Africa TUN TN 23424967 Africa 0.50 0.59 tn TN Madagascar 3 Mad. Eastern Africa Sub-Saharan Africa MDG MG 23424883 Africa 0.43 0.51 mg MG Kenya 2 Ken. Eastern Africa Sub-Saharan Africa KEN KE 23424863 Africa 0.47 0.43 ke KE Democratic Republic of the Congo 2 D.R.C. Middle Africa Sub-Saharan Africa COD CD 23424780 Africa 0.67 0.67 cd CD France 2 Fr. Western Europe Europe & Central Asia FRA FR -90 Europe 0.97 0.98 fr FR Mauritania 3 Mrt. Western Africa Sub-Saharan Africa MRT MR 23424896 Africa 0.51 0.56 mr MR Algeria 3 Alg. Northern Africa Middle East & North Africa DZA DZ 23424740 Africa 0.60 0.50 dz DZ Eritrea 4 Erit. Eastern Africa Sub-Saharan Africa ERI ER 23424806 Africa 0.32 0.39 er ER Equatorial Guinea 4 Eq. G. Middle Africa Sub-Saharan Africa GNQ GQ 23424804 Africa 0.42 0.75 gq GQ Mauritius 5 Mus. Eastern Africa Sub-Saharan Africa MUS MU 23424894 Seven seas (open ocean) 0.61 0.58 mu MU Senegal 3 Sen. Western Africa Sub-Saharan Africa SEN SN 23424943 Africa 0.45 0.41 sn SN Comoros 6 Com. Eastern Africa Sub-Saharan Africa COM KM 23424786 Africa 0.06 0.28 km KM Ethiopia 2 Eth. Eastern Africa Sub-Saharan Africa ETH ET 23424808 Africa 0.46 0.60 et ET Ivory Coast 3 I.C. Western Africa Sub-Saharan Africa CIV CI 23424854 Africa 0.50 0.52 ci CI Ghana 3 Ghana Western Africa Sub-Saharan Africa GHA GH 23424824 Africa 0.44 0.38 gh GH Zambia 3 Zambia Eastern Africa Sub-Saharan Africa ZMB ZM 23425003 Africa 0.36 0.65 zm ZM Namibia 3 Nam. Southern Africa Sub-Saharan Africa NAM NA 23424987 Africa 0.43 0.40 na NA Rwanda 3 Rwa. Eastern Africa Sub-Saharan Africa RWA RW 23424937 Africa 0.83 0.39 rw RW Somaliland 5 Solnd. Eastern Africa Sub-Saharan Africa -99 SX -99 Africa 0.72 0.52 sx SX Somalia 6 Som. Eastern Africa Sub-Saharan Africa SOM SO -90 Africa 0.29 0.64 so SO Cameroon 3 Cam. Middle Africa Sub-Saharan Africa CMR CM 23424785 Africa 0.51 0.76 cm CM Republic of Congo 4 Rep. Congo Middle Africa Sub-Saharan Africa COG CG 23424779 Africa 0.64 0.37 cg CG Western Sahara 7 W. Sah. Northern Africa Middle East & North Africa ESH EH 23424990 Africa 0.80 0.22 eh EH Benin 5 Benin Western Africa Sub-Saharan Africa BEN BJ 23424764 Africa 0.48 0.27 bj BJ Burkina Faso 3 B.F. Western Africa Sub-Saharan Africa BFA BF 23424978 Africa 0.54 0.41 bf BF Togo 6 Togo Western Africa Sub-Saharan Africa TGO TG 23424965 Africa 0.75 0.91 tg TG Niger 3 Niger Western Africa Sub-Saharan Africa NER NE 23424906 Africa 0.63 0.47 ne NE Libya 3 Libya Northern Africa Middle East & North Africa LBY LY 23424882 Africa 0.51 0.47 ly LY Liberia 4 Liberia Western Africa Sub-Saharan Africa LBR LR 23424876 Africa 0.37 0.54 lr LR Malawi 6 Mal. Eastern Africa Sub-Saharan Africa MWI MW 23424889 Africa 0.23 0.33 mw MW Gambia 6 Gambia Western Africa Sub-Saharan Africa GMB GM 23424821 Africa 0.26 0.53 gm GM Chad 3 Chad Middle Africa Sub-Saharan Africa TCD TD 23424777 Africa 0.50 0.50 td TD Gabon 4 Gabon Middle Africa Sub-Saharan Africa GAB GA 23424822 Africa 0.57 0.47 ga GA Djibouti 5 Dji. Eastern Africa Middle East & North Africa DJI DJ 23424797 Africa 0.80 0.21 dj DJ Burundi 6 Bur. Eastern Africa Sub-Saharan Africa BDI BI 23424774 Africa 0.20 0.59 bi BI Angola 3 Ang. Middle Africa Sub-Saharan Africa AGO AO 23424745 Africa 0.50 0.63 ao AO Guinea 3 Gin. Western Africa Sub-Saharan Africa GIN GN 23424835 Africa 0.38 0.28 gn GN Zimbabwe 3 Zimb. Eastern Africa Sub-Saharan Africa ZWE ZW 23425004 Africa 0.63 0.52 zw ZW South Africa 2 S.Af. Southern Africa Sub-Saharan Africa ZAF ZA 23424942 Africa 0.44 0.59 za ZA Mozambique 3 Moz. Eastern Africa Sub-Saharan Africa MOZ MZ 23424902 Africa 0.73 0.24 mz MZ Swaziland 4 Swz. Southern Africa Sub-Saharan Africa SWZ SZ 23424993 Africa 0.52 0.48 sz SZ Mali 3 Mali Western Africa Sub-Saharan Africa MLI ML 23424891 Africa 0.60 0.42 ml ML Botswana 4 Bwa. Southern Africa Sub-Saharan Africa BWA BW 23424755 Africa 0.45 0.50 bw BW Sudan 3 Sudan Northern Africa Sub-Saharan Africa SDN SD -90 Africa 0.48 0.45 sd SD Morocco 3 Mor. Northern Africa Middle East & North Africa MAR MA 23424893 Africa 0.73 0.27 ma MA Egypt 2 Egypt Northern Africa Middle East & North Africa EGY EG 23424802 Africa 0.38 0.57 eg EG Lesotho 6 Les. Southern Africa Sub-Saharan Africa LSO LS 23424880 Africa 0.50 0.48 ls LS South Sudan 3 S. Sud. Eastern Africa Sub-Saharan Africa SSD SS -99 Africa 0.51 0.49 ss SS Central African Republic 4 C.A.R. Middle Africa Sub-Saharan Africa CAF CF 23424792 Africa 0.51 0.45 cf CF Copyright (c) 2020 Highsoft AS, Based on data from Natural Earth ```
eriksoeb commented 1 year ago

@KacperMadej is it possible to make this solution also for custom/world.topo.json please? As far as I can see it works for Africa only.

I was thinking it should be possible to use the world, and then push/update Morocco and Western Sahara . (Pushing HongKong this way ie works fine.

Highcharts.maps['custom/world'].features.push({"type":"Feature","id":"HK","properties":{"hc-group":"admin0","hc etc ... //works Highcharts.maps['custom/world'].features.push({"type":"Feature","id":"MA","properties":{"hc-group" etc ... Highcharts.maps['custom/world'].features.push({"type":"Feature","id":"EH","properties":{"hc-group": ..etc ...

morocco

rsbssbno commented 1 year ago

Thanks for reading this one, as the worldbank, Wiki and UN https://www.spsrasd.info/news/en/articles/2023/04/08/44969.html use the borders I have requested, we cannot really use the worldmap form Highcharts until highcharts is UN compatible so would be great if this can be given attention, meanwhile we need to try other non highsoft solutions. (wiki image below) image

rsbssbno commented 1 year ago

@KacperMadej I see you make a lot of progress on maps these days, observing fixes related to western sahara, but notting for Morocco? I am strugling with this one: https://jsfiddle.net/eriksoeberg/o4s8zq79/3/ but no fix ?

KacperMadej commented 1 year ago

Hi @rsbssbno The geometries of the features you have added do not match the world map you have edited. A better fix would be to work with TopoJSON files as the coordinates used in all out TopoJSON maps are projection-less and are working fine with each other.

At this moment I am not able to provide a working fix you this issue but I'll try to prioritize this.

rsbssbno commented 1 year ago

Fix is super-welcome as I am not sure to attack this TopoJson files other than the world.topo.jason I am already using.

rsbssbno commented 12 months ago

Any hint on how western sahara /Morocco can be fixed using TopoJson World custom, as mentioned above. I am still struggling with this one; https://jsfiddle.net/eriksoeberg/o4s8zq79/3/

rsbssbno commented 2 weeks ago

Time is flying, still struggling with Morocco Western Sahara, any concrete tips techniques are more than welcome..