27 lines
12 KiB
JavaScript
27 lines
12 KiB
JavaScript
|
(function (root, factory) {
|
|||
|
if (typeof define === 'function' && define.amd) {
|
|||
|
// AMD. Register as an anonymous module.
|
|||
|
define(['exports', 'echarts'], factory);
|
|||
|
} else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {
|
|||
|
// CommonJS
|
|||
|
factory(exports, require('echarts'));
|
|||
|
} else {
|
|||
|
// Browser globals
|
|||
|
factory({}, root.echarts);
|
|||
|
}
|
|||
|
}(this, function (exports, echarts) {
|
|||
|
var log = function (msg) {
|
|||
|
if (typeof console !== 'undefined') {
|
|||
|
console && console.error && console.error(msg);
|
|||
|
}
|
|||
|
}
|
|||
|
if (!echarts) {
|
|||
|
log('ECharts is not Loaded');
|
|||
|
return;
|
|||
|
}
|
|||
|
if (!echarts.registerMap) {
|
|||
|
log('ECharts Map is not loaded')
|
|||
|
return;
|
|||
|
}
|
|||
|
echarts.registerMap('香港', {"type":"FeatureCollection","features":[{"id":"810001","geometry":{"type":"MultiPolygon","coordinates":[["@@D@bKBoCWKACBGCI@CJSVGFIBKCM@ABAF@LFHPFJJPFNB","@@ABD@@AAA","@@AAG@@BBDD@DA"]],"encodeOffsets":[[[116895,22829],[116861,22818],[116860,22817]]]},"properties":{"cp":[114.1543731,22.28198083],"name":"中西區","childNum":3}},{"id":"810002","geometry":{"type":"Polygon","coordinates":["@@BMHBBGD@BAHBD@HKDEF@FHDEDECCGCIAAQWCUBSBDXApRE"],"encodeOffsets":[[116927,22822]]},"properties":{"cp":[114.1829153,22.27638889],"name":"灣仔區","childNum":1}},{"id":"810003","geometry":{"type":"Polygon","coordinates":["@@rWAGBEJKRO@ACCBEAIAEGEACKPA@MDICIDOBKDGAIBIABRJBHDDDCFCFEGE@CFGLC@GAABC@AHGAAN|T"],"encodeOffsets":[[116967,22827]]},"properties":{"cp":[114.2260031,22.27969306],"name":"東區","childNum":1}},{"id":"810004","geometry":{"type":"MultiPolygon","coordinates":[["@@JBJAHBLCPAJCJDPCLOJM@IBAFBBA@CE@AAE@AAFIBQBADAFECCBEA@GFCAYBABIRC@QEGEACBEHMACECQACFE`A@GCK@AFFHADMJBBF@BB@FBHCFI@KLEBCAGWAAQDGCGJQHOPOHS`KLN@LDJAHETUDIJ@HDxCXD","@@ACCBDB","@@D@@ACCCB@CC@CFBDHA","@@BA@AGB@BD@","@@DABAGCCH@BD@","@@BAEBD@"]],"encodeOffsets":[[[116946,22787],[116886,22776],[116934,22767],[117006,22758],[116932,22748],[116970,22738]]]},"properties":{"cp":[114.1600117,22.24589667],"name":"南區","childNum":6}},{"id":"810005","geometry":{"type":"Polygon","coordinates":["@@AIBINQNIHU]IsRC@AvFBHFDCLDV@"],"encodeOffsets":[[116920,22860]]},"properties":{"cp":[114.1733317,22.31170389],"name":"油尖旺區","childNum":1}},{"id":"810006","geometry":{"type":"Polygon","coordinates":["@@H[@EEGU@KCCDGEEABQi@AHCF@B^P@BABOFCFBFF@FDNADADHJDhB"],"encodeOffsets":[[116919,22881]]},"properties":{"cp":[114.1632417,22.33385417],"name":"深水埗區","childNum":1}},{"id":"810007","geometry":{"type":"Polygon","coordinates":["@@DEBEFC@CJKD@DCHDLDBMEG@CFCLICETSDQSJeMGVKHGJIR@HFJBFG^FDD@"],"encodeOffsets":[[116925,22883]]},"properties":{"cp":[114.1928467,22.31251],"name":"九龍城區","childNum":1}},{"id":"810008","geometry":{"type":"Polygon","coordinates":["@@AC@IH_BAYCEDIAGDICGCCDC@IL@DEDAFCFNDVD@BADBBHCFDJAZD"],"encodeOffsets":[[116970,22892]]},"properties":{"cp":[114.2038856,22.33632056],"name":"黃大仙區","childNum":1}},{"id":"810009","geometry":{"type":"Polygon","coordinates":["@@F@HWF@DABD@IHBB@GOAENMBE@AEAGOBCFE@CqXCRSTDFKJED@DFHANFCJBFCXD"],"encodeOffsets":[[116974,22868]]},"properties":{"cp":[114.2140542,22.32083778],"name":"觀塘區","childNum":1}},{"id":"810010","geometry":{"type":"Polygon","coordinates":["@@AEDQ@WQACIKIGCQCABAHC@]I@ADC@ECICCKEGA@NuASIHyO@IEQW@CÙF~bNJFL@D@FLBBNPJJFIDAHEDBDHBDDBBTCB@AHDB^@@JHHF@DDLFJFDBHCD@PPD@L@RLLBDHVBNAHBBABGbB"],"encodeOffsets":[[116914,22950]]},"properties":{"cp":[114.1210792,22.36830667],"name":"荃灣區","childNum":1}},{"id":"810011","geometry":{"type":"MultiPolygon","coordinates":[["@@AC@G]@CABGA@SDAACCGAACFCBGJCIEOIAMKAEHGFgFgPS@E@MEGEEGCAO@E@SLUNCH@DDH@H@JEHAJCHQFAB\\`FBTFTCBCDGBAJLJP\\@FC^CND@AEINGXA@OL@@U@@HN@BEE@@KTA","@@BAFADAAC@AACDACGEBBHAFGFBDB@","@@B@BA@AAB","@@BAB@CCC@BD","@@D@CGABAF","@@@ACICABJDD","@@DA@ACCC@ADBFBB@C","@@@A@@ABB@"]],"encodeOffsets":[[[116810,22924],[116618,22917],[116612,22891],[116626,22888],[116629,22880],[116725,22874],[116708,22866],[116720,22861]]]},"properties":{"cp":[113.9765742,22.39384417],"name":"屯門區","childNum":8}},{"id":"810012","geometry":{"type":"Polygon","coordinates":["@@BMDIEK@CDCAMHG@C@MCG@YBAZHZDLIJA[gAGBEHMTO@EAIKAQKK@C@OOC@GDCAIEKECCE@EE@HSB@LF@AFM@@G@@VK@@PWBMHFJ@BMC]DEDY@AAEIEIGEABELSDVHNRJPHJLHXHFBP^ZVBRB@\\CJIDEH@DDAJHDFF@DGL@FFB^CRED@JFDPJHPBHED@HFFF"],"encodeOffsets":[[116828,23059]]},"properties":{"cp":[114.0324381,22.44142833],"name":"元朗區","childNum":1}},{"id":"810013","geometry":{"type":"MultiPolygon","coordinates":[["@@A@@HIEK@EA@BDH@BBBD@BBBAB@MN@DH@@BEFFFFA@C@@VABBDAJ@B@D@FAKEGB@ACACCA@IFCBAAAEFABEHGD@D@AIGB","@@DC@CEDAFB@","@@@AAB","@@@AC@BB","@@AABB","@@BAAAEABDDB","@@@A@CEDDB","@@@AAB@@","@@DA@CIE@JDB","@@@@@@","@@DCD@BNDBDIAE@I@EE@ABABOHAJBBDBDA","@@@A@B","@@B@B@ECAFB@BA","@@AABB","@@@@A@@B","@@A@
|
|||
|
}));
|