Skip to content

Instantly share code, notes, and snippets.

@oysteinmoseng
Created July 20, 2016 10:19
Show Gist options
  • Save oysteinmoseng/99808bc853faa80294c3066e4da951cb to your computer and use it in GitHub Desktop.
Save oysteinmoseng/99808bc853faa80294c3066e4da951cb to your computer and use it in GitHub Desktop.
Highmaps Node Demo
module.exports = {"title":"Australia","version":"1.1.2","type":"FeatureCollection","copyright":"Copyright (c) 2015 Highsoft AS, Based on data from Natural Earth","copyrightShort":"Natural Earth","copyrightUrl":"http://www.naturalearthdata.com","crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:EPSG:3112"}},"hc-transform":{"default":{"crs":"+proj=lcc +lat_1=-18 +lat_2=-36 +lat_0=0 +lon_0=134 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs","scale":0.000158093982027,"jsonres":15.5,"jsonmarginX":-999,"jsonmarginY":9851.0,"xoffset":-2082021.85219,"yoffset":-1210304.51735}},
"features":[{"type":"Feature","id":"AU.NT","properties":{"hc-group":"admin1","hc-middle-x":0.48,"hc-middle-y":0.58,"hc-key":"au-nt","hc-a2":"NT","labelrank":"2","hasc":"AU.NT","alt-name":null,"woe-id":"2344701","subregion":null,"fips":"AS03","postal-code":"NT","name":"Northern Territory","country":"Australia","type-en":"Territory","region":null,"longitude":"133.78","woe-name":"Northern Territory","latitude":"-20.1026","woe-label":"Northern Territory, AU, Australia","type":"Territory"},"geometry":{"type":"MultiPolygon","coordinates":[[[[4896,8385],[4919,8368],[4915,8315],[4879,8350],[4896,8385]]],[[[4777,8883],[4791,8873],[4806,8901],[4824,8899],[4833,8869],[4854,8862],[4867,8890],[4888,8875],[4843,8828],[4857,8814],[4828,8802],[4832,8771],[4850,8781],[4895,8757],[4880,8739],[4834,8752],[4809,8746],[4756,8769],[4725,8762],[4756,8791],[4754,8876],[4777,8883]]],[[[3114,9515],[3135,9481],[3132,9451],[3160,9452],[3182,9424],[3147,9413],[3098,9431],[3026,9414],[3029,9456],[3065,9462],[3059,9508],[3081,9550],[3101,9557],[3114,9515]]],[[[3145,9569],[3205,9541],[3250,9562],[3284,9551],[3343,9593],[3398,9583],[3427,9521],[3412,9486],[3386,9490],[3363,9450],[3279,9392],[3205,9426],[3145,9466],[3106,9580],[3115,9603],[3145,9569]]],[[[4783,9518],[4753,9489],[4698,9463],[4728,9497],[4737,9486],[4779,9520],[4862,9640],[4848,9594],[4783,9518]]],[[[3715,9646],[3726,9589],[3719,9561],[3689,9610],[3682,9648],[3715,9646]]],[[[5154,8118],[5153,8119],[5153,8115],[5072,5569],[2891,5561],[2772,8566],[2772,8566],[2819,8541],[2827,8500],[2844,8503],[2830,8575],[2899,8553],[2926,8521],[2930,8489],[2950,8498],[2937,8547],[2905,8590],[2985,8576],[3025,8606],[2974,8586],[2931,8626],[2925,8654],[2862,8695],[2866,8717],[2910,8786],[2955,8806],[2953,8843],[2972,8876],[2982,8946],[2996,8967],[3018,8942],[3062,8962],[3092,9012],[3055,9046],[3056,9106],[3107,9117],[3117,9193],[3189,9172],[3170,9196],[3185,9249],[3229,9250],[3256,9201],[3281,9199],[3254,9229],[3280,9223],[3240,9260],[3260,9279],[3302,9275],[3288,9339],[3350,9307],[3368,9361],[3376,9323],[3421,9293],[3500,9302],[3533,9316],[3572,9293],[3618,9321],[3662,9319],[3674,9295],[3678,9336],[3715,9354],[3743,9342],[3729,9379],[3735,9417],[3719,9439],[3746,9476],[3726,9478],[3691,9525],[3657,9536],[3579,9511],[3534,9565],[3491,9567],[3522,9607],[3538,9585],[3549,9619],[3586,9597],[3584,9563],[3611,9542],[3606,9619],[3629,9607],[3648,9622],[3685,9592],[3740,9516],[3763,9521],[3794,9567],[3850,9517],[3880,9459],[3924,9468],[3918,9448],[3991,9438],[4049,9461],[4086,9449],[4058,9428],[4087,9406],[4122,9422],[4156,9396],[4154,9361],[4181,9391],[4220,9366],[4265,9364],[4312,9396],[4323,9369],[4372,9369],[4343,9344],[4366,9340],[4394,9309],[4475,9356],[4535,9352],[4539,9391],[4577,9395],[4622,9419],[4573,9376],[4620,9388],[4552,9333],[4574,9292],[4617,9337],[4663,9313],[4642,9277],[4652,9251],[4715,9254],[4746,9305],[4696,9325],[4725,9358],[4683,9361],[4734,9379],[4739,9362],[4775,9390],[4807,9351],[4808,9326],[4835,9296],[4854,9328],[4885,9311],[4899,9276],[4829,9188],[4777,9140],[4816,9110],[4778,9106],[4797,9082],[4772,9036],[4747,9037],[4744,9081],[4726,9055],[4685,9028],[4683,9067],[4666,9037],[4637,9037],[4611,9012],[4632,8978],[4603,8976],[4599,8937],[4614,8898],[4655,8911],[4637,8853],[4619,8837],[4614,8773],[4574,8754],[4512,8668],[4509,8649],[4470,8633],[4494,8568],[4597,8504],[4621,8480],[4697,8435],[4703,8402],[4772,8353],[4857,8379],[4805,8333],[4817,8298],[4870,8291],[4893,8311],[4947,8276],[4989,8238],[5089,8199],[5119,8148],[5154,8118]]]]}},{"type":"Feature","id":"AU.WA","properties":{"hc-group":"admin1","hc-middle-x":0.57,"hc-middle-y":0.55,"hc-key":"au-wa","hc-a2":"WA","labelrank":"2","hasc":"AU.WA","alt-name":null,"woe-id":"2344706","subregion":null,"fips":"AS08","postal-code":"WA","name":"Western Australia","country":"Australia","type-en":"State","region":null,"longitude":"121.646","woe-name":"Western Australia","latitude":"-25.8483","woe-label":"Western Australia, AU, Australia","type":"State"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-996,5296],[-984,5294],[-964,5237],[-912,5159],[-908,5132],[-955,5178],[-999,5255],[-996,5296]]],[[[-590,6624],[-619,6615],[-599,6662],[-579,6651],[-590,6624]]],[[[1566,8375],[1597,8381],[1608,8360],[1575,8361],[1566,8375]]],[[[2772,8566],[2772,8566],[2891,5561],[2948,4129],[2952,4034],[2875,3989],[2731,3918],[2674,3905],[2567,3859],[2428,3839],[2358,3844],[2314,3855],[2244,3824],[2172,3761],[2127,3743],[2053,3701],[2032,3674],[1990,3652],[1911,3632],[1860,3583],[1841,3518],[1833,3460],[1792,3417],[1790,3395],[1745,3352],[1703,3358],[1688,3334],[1661,3328],[1644,3360],[1531,3341],[1529,3327],[1472,3332],[1462,3304],[1421,3304],[1403,3352],[1359,3329],[1317,3330],[1294,3343],[1250,3340],[1213,3322],[1081,3301],[1050,3277],[954,3278],[912,3257],[864,3209],[830,3139],[836,3120],[807,3099],[773,3108],[711,3106],[721,3093],[698,3064],[640,3025],[625,2971],[569,2943],[510,2925],[536,2903],[475,2914],[464,2888],[402,2911],[360,2908],[289,2889],[264,2897],[244,2882],[204,2890],[209,2906],[181,2926],[171,2910],[90,2919],[75,2948],[-7,3012],[-74,3038],[-111,3033],[-120,3018],[-146,3041],[-164,3088],[-183,3194],[-183,3238],[-150,3217],[-112,3214],[-80,3233],[-40,3323],[-49,3394],[-80,3488],[-76,3508],[-47,3500],[-59,3525],[-64,3610],[-76,3689],[-101,3761],[-166,3845],[-211,3924],[-248,3963],[-274,4011],[-320,4118],[-335,4166],[-334,4201],[-349,4265],[-349,4314],[-399,4411],[-448,4452],[-471,4483],[-473,4518],[-493,4551],[-557,4621],[-596,4648],[-624,4722],[-618,4758],[-665,4852],[-741,4948],[-793,5005],[-875,5067],[-887,5109],[-890,5174],[-869,5092],[-861,5130],[-827,5081],[-814,5090],[-804,5033],[-743,5034],[-730,5065],[-737,5105],[-790,5129],[-821,5160],[-833,5198],[-875,5249],[-861,5311],[-852,5283],[-786,5216],[-788,5149],[-764,5137],[-747,5203],[-742,5165],[-717,5111],[-680,5085],[-655,5125],[-670,5155],[-660,5213],[-669,5252],[-696,5261],[-765,5343],[-807,5411],[-831,5420],[-865,5478],[-874,5521],[-922,5566],[-948,5639],[-950,5693],[-923,5811],[-891,5849],[-891,5899],[-907,5942],[-896,5974],[-920,6041],[-947,6053],[-957,6093],[-929,6165],[-918,6243],[-897,6298],[-864,6322],[-868,6217],[-839,6172],[-847,6138],[-828,6129],[-805,6154],[-783,6148],[-741,6327],[-677,6378],[-634,6392],[-553,6446],[-523,6496],[-476,6533],[-450,6584],[-400,6616],[-388,6652],[-334,6665],[-248,6752],[-252,6720],[-227,6710],[-162,6751],[-148,6729],[-107,6722],[-47,6749],[-13,6753],[27,6785],[33,6804],[77,6846],[136,6853],[250,6894],[279,6955],[336,6986],[430,6968],[486,7003],[595,7031],[696,7081],[769,7124],[826,7173],[853,7208],[898,7290],[923,7363],[913,7389],[941,7395],[939,7427],[960,7464],[982,7463],[1055,7543],[1081,7558],[1087,7599],[1037,7600],[1039,7674],[1019,7712],[1019,7794],[1042,7843],[1089,7894],[1122,7883],[1101,7914],[1111,7932],[1176,7940],[1156,7986],[1187,8014],[1192,8041],[1237,8043],[1213,8027],[1208,7997],[1263,7940],[1263,7911],[1296,7887],[1340,7804],[1384,7756],[1384,7799],[1399,7852],[1383,7902],[1402,7897],[1457,7847],[1435,7902],[1470,7941],[1426,7935],[1403,7973],[1341,7996],[1327,8032],[1387,8039],[1347,8057],[1401,8055],[1399,8081],[1370,8083],[1364,8127],[1410,8139],[1427,8112],[1403,8102],[1474,8075],[1449,8117],[1519,8099],[1528,8080],[1566,8074],[1677,8089],[1631,8101],[1580,8097],[1571,8127],[1588,8173],[1608,8141],[1626,8159],[1625,8208],[1602,8197],[1571,8220],[1560,8316],[1581,8332],[1623,8326],[1647,8368],[1627,8396],[1677,8397],[1677,8437],[1706,8433],[1710,8479],[1801,8435],[1825,8437],[1825,8473],[1758,8490],[1791,8508],[1743,8539],[1767,8576],[1728,8576],[1733,8615],[1768,8586],[1827,8618],[1857,8611],[1857,8692],[1883,8618],[1914,8639],[1923,8602],[1946,8585],[1948,8619],[1979,8623],[1949,8656],[1981,8667],[1996,8738],[2017,8755],[2023,8707],[2074,8777],[2099,8781],[2081,8748],[2124,8709],[2148,8778],[2181,8780],[2156,8831],[2210,8853],[2261,8789],[2288,8811],[2317,8809],[2358,8769],[2407,8739],[2467,8661],[2550,8603],[2527,8485],[2531,8418],[2542,8415],[2543,8483],[2610,8579],[2646,8592],[2704,8574],[2772,8566]]]]}},{"type":"Feature","id":"AU.CT","properties":{"hc-group":"admin1","hc-middle-x":0.37,"hc-middle-y":0.46,"hc-key":"au-ct","hc-a2":"CT","labelrank":"9","hasc":"AU.CT","alt-name":null,"woe-id":"1100968","subregion":null,"fips":"AS01","postal-code":"CT","name":"Australian Capital Territory","country":"Australia","type-en":"Territory","region":null,"longitude":"148.983","woe-name":"Canberra","latitude":"-35.4618","woe-label":null,"type":"Territory"},"geometry":{"type":"Polygon","coordinates":[[[7515,2859],[7470,2856],[7441,2797],[7438,2738],[7423,2715],[7401,2725],[7394,2766],[7373,2778],[7375,2837],[7393,2884],[7460,2921],[7515,2859]]]}},{"type":"Feature","id":"AU.SA","properties":{"hc-group":"admin1","hc-middle-x":0.55,"hc-middle-y":0.34,"hc-key":"au-sa","hc-a2":"SA","labelrank":"2","hasc":"AU.SA","alt-name":null,"woe-id":"2344703","subregion":null,"fips":"AS05","postal-code":"SA","name":"South Australia","country":"Australia","type-en":"State","region":null,"longitude":"135.783","woe-name":"South Australia","latitude":"-29.6504","woe-label":"South Australia, AU, Australia","type":"State"},"geometry":{"type":"MultiPolygon","coordinates":[[[[4907,2993],[4896,2954],[4940,2950],[4956,2932],[4969,2952],[5003,2942],[5016,2913],[4998,2899],[4973,2912],[4934,2914],[4902,2901],[4903,2880],[4866,2858],[4848,2878],[4813,2888],[4796,2871],[4770,2877],[4702,2868],[4690,2892],[4663,2910],[4675,2948],[4724,2964],[4784,2972],[4846,2994],[4907,2993]]],[[[5611,2288],[5555,2288],[5532,2298],[5482,2343],[5459,2404],[5406,2455],[5356,2541],[5367,2556],[5344,2604],[5369,2617],[5388,2653],[5388,2692],[5332,2844],[5254,2936],[5194,2985],[5212,2982],[5307,2885],[5331,2851],[5351,2801],[5338,2858],[5314,2893],[5221,2977],[5243,3004],[5264,2990],[5265,2950],[5286,2951],[5291,2977],[5261,3001],[5296,3012],[5274,3048],[5205,3029],[5221,3003],[5169,3013],[5211,2992],[5156,2997],[5107,2970],[5034,2965],[5018,2997],[5087,3050],[5108,3130],[5105,3179],[5117,3215],[5098,3230],[5058,3299],[5052,3331],[5020,3384],[5010,3336],[4985,3308],[4978,3251],[4938,3134],[4920,3102],[4861,3119],[4824,3107],[4808,3088],[4780,3093],[4742,3076],[4734,3089],[4763,3129],[4759,3145],[4780,3182],[4872,3175],[4889,3255],[4879,3302],[4887,3352],[4880,3379],[4903,3403],[4915,3455],[4941,3479],[4994,3547],[4967,3621],[4978,3639],[5017,3649],[5003,3688],[4975,3807],[4963,3819],[4959,3774],[4970,3729],[4960,3693],[4939,3704],[4887,3655],[4868,3588],[4832,3518],[4785,3498],[4768,3512],[4753,3480],[4691,3454],[4636,3409],[4604,3346],[4577,3326],[4567,3299],[4537,3286],[4523,3256],[4524,3223],[4544,3217],[4552,3165],[4541,3157],[4510,3194],[4492,3198],[4467,3173],[4461,3193],[4423,3239],[4379,3279],[4354,3269],[4361,3297],[4395,3283],[4418,3257],[4405,3358],[4387,3433],[4371,3461],[4293,3533],[4299,3556],[4287,3608],[4253,3643],[4204,3662],[4166,3660],[4146,3718],[4117,3728],[4133,3748],[4120,3781],[4152,3778],[4171,3791],[4165,3815],[4137,3850],[4069,3831],[4091,3869],[4063,3907],[4032,3922],[4022,3946],[4000,3927],[3983,3943],[3968,3916],[3908,3920],[3868,3943],[3827,3984],[3753,3983],[3755,3964],[3698,3962],[3661,3995],[3593,4042],[3535,4074],[3452,4107],[3373,4072],[3217,4075],[2952,4034],[2948,4129],[2891,5561],[5072,5569],[5799,5537],[5754,4734],[5679,3385],[5672,3394],[5611,2288]]]]}},{"type":"Feature","id":"AU.QL","properties":{"hc-group":"admin1","hc-middle-x":0.44,"hc-middle-y":0.68,"hc-key":"au-ql","hc-a2":"QL","labelrank":"2","hasc":"AU.QL","alt-name":null,"woe-id":"2344702","subregion":null,"fips":"AS04","postal-code":"QL","name":"Queensland","country":"Australia","type-en":"State","region":null,"longitude":"144.778","woe-name":"Queensland","latitude":"-23.1364","woe-label":"Queensland, AU, Australia","type":"State"},"geometry":{"type":"MultiPolygon","coordinates":[[[[8736,4862],[8733,4941],[8757,4951],[8737,4862],[8763,4842],[8729,4764],[8716,4765],[8736,4862]]],[[[8811,5562],[8807,5510],[8821,5485],[8751,5374],[8712,5289],[8696,5358],[8734,5413],[8733,5452],[8762,5467],[8793,5505],[8771,5546],[8811,5562]]],[[[8312,5983],[8348,5956],[8365,5895],[8343,5890],[8297,5975],[8312,5983]]],[[[7267,7524],[7293,7471],[7275,7450],[7229,7516],[7267,7524]]],[[[5600,8127],[5609,8111],[5576,8099],[5562,8119],[5531,8071],[5493,8056],[5461,8074],[5492,8125],[5576,8141],[5600,8127]]],[[[6388,9713],[6382,9662],[6344,9656],[6338,9684],[6388,9713]]],[[[6374,9821],[6408,9808],[6393,9790],[6342,9833],[6356,9851],[6374,9821]]],[[[8690,4630],[8644,4631],[8623,4610],[8560,4626],[8537,4621],[8480,4656],[8458,4636],[8346,4601],[8363,4553],[8347,4508],[8305,4503],[8277,4515],[8233,4503],[8221,4476],[8178,4454],[8172,4521],[8126,4550],[8123,4578],[8067,4613],[7986,4620],[7954,4655],[7887,4646],[7793,4656],[7761,4666],[7742,4642],[7661,4607],[7626,4570],[5754,4734],[5799,5537],[5072,5569],[5153,8115],[5154,8118],[5200,8075],[5280,8045],[5324,8048],[5348,8030],[5422,8007],[5452,7974],[5447,7951],[5479,7887],[5521,7878],[5572,7833],[5645,7805],[5663,7781],[5726,7779],[5796,7794],[5883,7840],[5922,7940],[5920,7955],[5959,8013],[5990,8037],[6022,8107],[6037,8165],[6061,8208],[6050,8243],[6086,8366],[6131,8456],[6141,8491],[6127,8528],[6111,8637],[6134,8702],[6134,8748],[6110,8785],[6110,8832],[6127,8887],[6178,8975],[6153,9050],[6201,9091],[6222,9132],[6243,9105],[6272,9115],[6223,9135],[6255,9152],[6221,9154],[6190,9179],[6163,9174],[6227,9301],[6248,9324],[6258,9284],[6290,9300],[6270,9320],[6277,9365],[6330,9493],[6349,9606],[6390,9611],[6428,9661],[6473,9649],[6442,9601],[6471,9615],[6482,9576],[6504,9583],[6519,9527],[6514,9498],[6531,9465],[6516,9442],[6522,9338],[6553,9312],[6589,9316],[6610,9295],[6575,9251],[6569,9202],[6615,9182],[6631,9134],[6659,9116],[6635,9049],[6684,9054],[6670,9030],[6669,8917],[6685,8862],[6662,8802],[6681,8744],[6698,8726],[6699,8672],[6715,8618],[6755,8585],[6817,8618],[6826,8648],[6856,8632],[6916,8665],[6943,8617],[6936,8578],[6950,8557],[7004,8537],[7038,8480],[7088,8469],[7100,8436],[7118,8436],[7089,8396],[7088,8357],[7106,8362],[7084,8316],[7085,8276],[7104,8216],[7097,8174],[7121,8129],[7116,8071],[7096,8026],[7183,7897],[7230,7896],[7207,7853],[7247,7753],[7243,7719],[7260,7686],[7239,7644],[7245,7624],[7209,7548],[7212,7519],[7250,7483],[7255,7452],[7286,7440],[7261,7348],[7299,7293],[7349,7255],[7376,7252],[7410,7216],[7438,7227],[7465,7181],[7539,7173],[7547,7191],[7568,7140],[7575,7090],[7593,7054],[7619,7049],[7614,7089],[7637,7075],[7658,7025],[7691,7030],[7740,7000],[7733,6969],[7765,6941],[7783,6971],[7809,6969],[7817,6924],[7833,6906],[7874,6901],[7871,6861],[7817,6831],[7827,6796],[7858,6751],[7887,6737],[7897,6707],[7928,6698],[7945,6671],[7933,6647],[7954,6618],[7962,6578],[7947,6556],[7973,6555],[7986,6495],[7973,6477],[8001,6351],[8021,6310],[8047,6309],[8096,6230],[8078,6326],[8092,6354],[8069,6349],[8078,6391],[8086,6366],[8115,6364],[8147,6291],[8167,6282],[8237,6221],[8229,6288],[8210,6306],[8225,6329],[8248,6279],[8279,6253],[8255,6232],[8282,6233],[8287,6191],[8256,6070],[8271,6043],[8259,6001],[8284,5962],[8326,5920],[8336,5884],[8357,5876],[8392,5821],[8448,5789],[8436,5821],[8473,5806],[8476,5773],[8503,5750],[8522,5665],[8540,5634],[8597,5591],[8614,5561],[8611,5521],[8643,5450],[8698,5429],[8703,5372],[8685,5357],[8687,5305],[8703,5283],[8698,5244],[8717,5278],[8722,5250],[8742,5247],[8698,5160],[8691,5062],[8699,5050],[8689,4986],[8697,4952],[8651,4919],[8670,4916],[8653,4887],[8690,4838],[8698,4787],[8722,4741],[8712,4671],[8723,4649],[8690,4630]]]]}},{"type":"Feature","id":"AU.2557","properties":{"hc-group":"admin1","hc-middle-x":0.52,"hc-middle-y":0.49,"hc-key":"au-2557","hc-a2":"NI","labelrank":"3","hasc":"AU.CT","alt-name":null,"woe-id":"23424905","subregion":null,"fips":"AS02","postal-code":null,"name":"Norfolk Island","country":"Australia","type-en":"Territory","region":null,"longitude":"159.076","woe-name":"Norfolk Island","latitude":"-31.586","woe-label":null,"type":"Territory"},"geometry":{"type":"Polygon","coordinates":[[[9845,3528],[9851,3514],[9846,3509],[9845,3523],[9845,3528]]]}},{"type":"Feature","id":"AU.TS","properties":{"hc-group":"admin1","hc-middle-x":0.53,"hc-middle-y":0.63,"hc-key":"au-ts","hc-a2":"TS","labelrank":"2","hasc":"AU.TS","alt-name":null,"woe-id":"2344704","subregion":null,"fips":"AS06","postal-code":"TS","name":"Tasmania","country":"Australia","type-en":"State","region":null,"longitude":"146.603","woe-name":null,"latitude":"-42.1383","woe-label":null,"type":"State"},"geometry":{"type":"MultiPolygon","coordinates":[[[[6834,711],[6821,678],[6794,718],[6827,743],[6834,711]]],[[[7106,1491],[7090,1463],[7074,1483],[7091,1502],[7055,1514],[7059,1527],[7127,1540],[7157,1502],[7124,1485],[7106,1491]]],[[[7067,1711],[7105,1645],[7132,1634],[7125,1558],[7104,1569],[7086,1554],[7070,1569],[7063,1606],[7043,1625],[7046,1663],[7020,1670],[7067,1711]]],[[[6237,1697],[6204,1678],[6190,1733],[6200,1796],[6229,1830],[6249,1813],[6252,1712],[6237,1697]]],[[[6394,1496],[6405,1526],[6425,1508],[6402,1496],[6439,1466],[6471,1473],[6486,1455],[6561,1424],[6575,1399],[6601,1390],[6660,1352],[6703,1345],[6781,1361],[6784,1339],[6813,1335],[6789,1355],[6793,1371],[6833,1385],[6864,1373],[6890,1388],[6921,1366],[6958,1407],[6973,1412],[7003,1390],[7024,1399],[7042,1429],[7086,1395],[7106,1348],[7088,1294],[7098,1268],[7081,1225],[7084,1181],[7066,1129],[7076,1096],[7067,1059],[7078,1041],[7062,985],[7053,1004],[7069,1039],[7038,1060],[7057,1077],[7045,1090],[7036,1054],[7022,1050],[6998,993],[6992,937],[6967,931],[6974,881],[6960,871],[6950,837],[6975,839],[6961,741],[6947,768],[6925,739],[6909,764],[6921,779],[6897,804],[6945,793],[6946,833],[6915,838],[6896,861],[6878,854],[6886,819],[6859,802],[6871,839],[6859,836],[6838,877],[6847,837],[6839,794],[6853,748],[6820,787],[6816,748],[6783,758],[6771,793],[6758,770],[6783,739],[6723,649],[6694,655],[6666,687],[6614,691],[6596,703],[6556,690],[6555,728],[6543,740],[6574,744],[6603,730],[6593,764],[6563,754],[6544,792],[6524,766],[6501,837],[6467,866],[6443,954],[6426,969],[6420,1084],[6429,1064],[6464,1031],[6469,994],[6493,1037],[6477,1038],[6449,1096],[6436,1075],[6430,1147],[6378,1224],[6354,1330],[6338,1363],[6340,1402],[6328,1427],[6350,1455],[6352,1506],[6394,1496]]]]}},{"type":"Feature","id":"AU.JB","properties":{"hc-group":"admin1","hc-middle-x":0.51,"hc-middle-y":0.47,"hc-key":"au-jb","hc-a2":"JB","labelrank":"2","hasc":"AU.JB","alt-name":null,"woe-id":"1102841","subregion":null,"fips":null,"postal-code":"JB","name":"Jervis Bay Territory","country":"Australia","type-en":"Territory","region":null,"longitude":"150.692","woe-name":"Jervis Bay","latitude":"-35.1532","woe-label":null,"type":"Territory"},"geometry":{"type":"Polygon","coordinates":[[[7814,2883],[7824,2866],[7792,2868],[7799,2879],[7814,2883]]]}},{"type":"Feature","id":"AU.NS","properties":{"hc-group":"admin1","hc-middle-x":0.45,"hc-middle-y":0.40,"hc-key":"au-ns","hc-a2":"NS","labelrank":"2","hasc":"AU.NS","alt-name":null,"woe-id":"2344700","subregion":null,"fips":"AS02","postal-code":"NS","name":"New South Wales","country":"Australia","type-en":"State","region":null,"longitude":"146.781","woe-name":"New South Wales","latitude":"-32.4751","woe-label":"New South Wales, AU, Australia","type":"State"},"geometry":{"type":"Polygon","coordinates":[[[7792,2868],[7778,2863],[7734,2779],[7666,2691],[7650,2622],[7648,2576],[7632,2560],[7623,2512],[7575,2419],[7580,2384],[7564,2374],[7588,2356],[7596,2320],[7573,2321],[7570,2259],[7213,2497],[7193,2504],[7217,2538],[7208,2559],[7190,2654],[7187,2703],[7129,2743],[7092,2731],[7058,2743],[7043,2714],[6996,2728],[6985,2713],[6934,2720],[6888,2753],[6846,2760],[6834,2744],[6796,2745],[6748,2761],[6738,2775],[6695,2780],[6660,2816],[6607,2812],[6535,2821],[6515,2785],[6525,2763],[6470,2753],[6441,2775],[6405,2819],[6387,2864],[6273,2965],[6234,2984],[6233,3014],[6196,3036],[6184,3096],[6193,3138],[6147,3170],[6089,3180],[6072,3206],[6056,3203],[6034,3154],[6015,3159],[5996,3210],[5981,3227],[5989,3274],[5957,3299],[5953,3321],[5907,3346],[5845,3352],[5803,3325],[5732,3366],[5688,3372],[5679,3385],[5754,4734],[7626,4570],[7661,4607],[7742,4642],[7761,4666],[7793,4656],[7887,4646],[7954,4655],[7986,4620],[8067,4613],[8123,4578],[8126,4550],[8172,4521],[8178,4454],[8221,4476],[8233,4503],[8277,4515],[8296,4489],[8305,4503],[8347,4508],[8363,4553],[8346,4601],[8458,4636],[8480,4656],[8537,4621],[8560,4626],[8623,4610],[8644,4631],[8690,4630],[8723,4649],[8738,4614],[8721,4530],[8730,4509],[8716,4455],[8674,4416],[8635,4344],[8639,4323],[8616,4245],[8571,4135],[8521,4049],[8496,3981],[8500,3943],[8512,3935],[8499,3888],[8477,3867],[8454,3784],[8430,3764],[8397,3695],[8361,3672],[8330,3618],[8341,3604],[8326,3542],[8293,3534],[8237,3493],[8208,3490],[8237,3477],[8215,3463],[8150,3453],[8106,3405],[8091,3372],[8061,3339],[8033,3288],[7996,3284],[8011,3267],[7985,3179],[7941,3168],[7972,3162],[7920,3120],[7892,3089],[7873,3033],[7876,3017],[7855,2970],[7829,2950],[7835,2917],[7851,2907],[7837,2883],[7832,2912],[7814,2883],[7799,2879],[7792,2868]],[[7515,2859],[7460,2921],[7393,2884],[7375,2837],[7373,2778],[7394,2766],[7401,2725],[7423,2715],[7438,2738],[7441,2797],[7470,2856],[7515,2859]]]}},{"type":"Feature","id":"AU.VI","properties":{"hc-group":"admin1","hc-middle-x":0.35,"hc-middle-y":0.59,"hc-key":"au-vi","hc-a2":"VI","labelrank":"2","hasc":"AU.VI","alt-name":null,"woe-id":"2344705","subregion":null,"fips":"AS07","postal-code":"VI","name":"Victoria","country":"Australia","type-en":"State","region":null,"longitude":"144.75","woe-name":"Victoria","latitude":"-37.0082","woe-label":"Victoria, AU, Australia","type":"State"},"geometry":{"type":"Polygon","coordinates":[[[5611,2288],[5672,3394],[5679,3385],[5688,3372],[5732,3366],[5803,3325],[5845,3352],[5907,3346],[5953,3321],[5957,3299],[5989,3274],[5981,3227],[5996,3210],[6015,3159],[6034,3154],[6056,3203],[6072,3206],[6089,3180],[6147,3170],[6193,3138],[6184,3096],[6196,3036],[6233,3014],[6234,2984],[6273,2965],[6387,2864],[6405,2819],[6441,2775],[6470,2753],[6525,2763],[6515,2785],[6535,2821],[6607,2812],[6660,2816],[6695,2780],[6738,2775],[6748,2761],[6796,2745],[6834,2744],[6846,2760],[6888,2753],[6934,2720],[6985,2713],[6996,2728],[7043,2714],[7058,2743],[7092,2731],[7129,2743],[7187,2703],[7190,2654],[7208,2559],[7217,2538],[7193,2504],[7213,2497],[7570,2259],[7527,2252],[7498,2216],[7454,2198],[7305,2213],[7200,2218],[7114,2201],[7038,2165],[6992,2131],[6869,2027],[6767,2011],[6755,2025],[6717,2012],[6736,1968],[6784,1999],[6759,1903],[6714,1981],[6696,1996],[6658,1976],[6640,2048],[6589,2050],[6579,2074],[6533,2093],[6494,2095],[6533,2113],[6546,2089],[6563,2117],[6534,2126],[6541,2155],[6588,2147],[6570,2171],[6541,2173],[6502,2130],[6458,2103],[6431,2142],[6471,2149],[6504,2196],[6505,2225],[6481,2269],[6447,2273],[6378,2222],[6342,2213],[6376,2202],[6405,2214],[6419,2202],[6401,2170],[6347,2170],[6267,2126],[6218,2073],[6187,2066],[6149,2033],[6108,2064],[6087,2064],[6051,2101],[5999,2121],[5967,2152],[5914,2185],[5876,2177],[5818,2214],[5779,2222],[5746,2203],[5753,2186],[5692,2193],[5695,2219],[5645,2267],[5611,2288]]]}}]}
import Highcharts from 'highcharts/highstock.src';
import mapFactory from 'highcharts/modules/map.src';
import australiaMap from './au-all.js'
mapFactory(Highcharts);
var data = [
{
"hc-key": "au-nt",
"value": 0
},
{
"hc-key": "au-wa",
"value": 1
},
{
"hc-key": "au-ct",
"value": 2
},
{
"hc-key": "au-sa",
"value": 3
},
{
"hc-key": "au-ql",
"value": 4
},
{
"hc-key": "au-2557",
"value": 5
},
{
"hc-key": "au-ts",
"value": 6
},
{
"hc-key": "au-jb",
"value": 7
},
{
"hc-key": "au-ns",
"value": 8
},
{
"hc-key": "au-vi",
"value": 9
}
];
var chart = Highcharts.mapChart('container', {
title : {
text : 'Highmaps node demo'
},
subtitle : {
text : 'Source map: <a href="https://code.highcharts.com/mapdata/countries/au/au-all.js">Australia</a>'
},
colorAxis: {
min: 0
},
series : [{
data : data,
mapData: australiaMap,
joinBy: 'hc-key',
name: 'Random data',
dataLabels: {
enabled: true,
format: '{point.name}'
}
}]
});
@oysteinmoseng
Copy link
Author

@OhCirca
Copy link

OhCirca commented Aug 25, 2016

Thank you so much. This helped me out with my react project where I am using the react-highcharts library.

@SteveRuben
Copy link

Thank you so much.

@orangle
Copy link

orangle commented Nov 22, 2017

thks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment