spritejs/spritejs

View on GitHub
examples/assets/mapdata/5304.json

Summary

Maintainability
Test Coverage
{"type": "FeatureCollection", "features": [{"type":"Feature","properties":{"name":"峨山彝族自治县","id":"530426"},"geometry":{"type":"MultiPolygon","coordinates":[[[[102.567345,24.103843],[102.571397734375,24.1268410468751],[102.580042753906,24.1092775703125],[102.567345,24.103843]]],[[[101.887345,24.243843],[101.877345,24.243843],[101.882345,24.2566506171875],[101.887345,24.243843]]],[[[102.567345,24.103843],[102.571319609375,24.0869655585938],[102.582740507813,24.0905226875001],[102.61834109375,24.0783913398438],[102.607345,24.053843],[102.597345,24.053843],[102.597345,24.0438430000001],[102.592523222656,24.038637921875],[102.582345,24.0390407539063],[102.567345,24.0384474921875],[102.547345,24.0392385078125],[102.512877226563,24.0378737617188],[102.493680449219,24.0585915351563],[102.477345,24.0592385078126],[102.457345,24.0584474921876],[102.442345,24.0590407539062],[102.412108183594,24.0578420234375],[102.412918730469,24.0783376289063],[102.36250125,24.0990480781251],[102.347345,24.0984474921876],[102.32334109375,24.0993971992188],[102.293211699219,24.0714821601563],[102.342154570313,24.0559889960937],[102.299293242188,24.0309011054688],[102.242535429688,24.0286525703125],[102.227345,24.023843],[102.21201296875,24.01808128125],[102.199058867188,24.0479470039063],[102.182735625,24.0282936835938],[102.172345,24.0293532539063],[102.1384778125,24.0259011054688],[102.143450957031,24.0746901679688],[102.111883574219,24.0883815742188],[102.092806425781,24.1034596992188],[102.120750761719,24.1522487617188],[102.074212675781,24.147505109375],[102.042611113281,24.1593801093751],[102.017345,24.1568044257813],[101.99213015625,24.1593752265625],[101.949659453125,24.1475002265626],[101.953873320313,24.1888430000001],[101.931883574219,24.1983815742188],[101.918270292969,24.2147682929687],[101.896419707031,24.2329177070313],[101.887345,24.243843],[101.913812285156,24.2608425117188],[101.932857695313,24.2580275703125],[101.94170046875,24.26948753125],[101.999840117188,24.2932814765626],[102.01170046875,24.34948753125],[102.02298953125,24.36819846875],[102.03170046875,24.3959206367188],[102.001077910156,24.4084548164063],[102.013377714844,24.428843],[102.00170046875,24.44819846875],[101.997345,24.4638430000001],[102.007345,24.4638430000001],[102.007345,24.473843],[102.013350859375,24.477837140625],[102.021339140625,24.4898488593751],[102.03935671875,24.5018312812501],[102.052406035156,24.5214528632813],[102.108863554688,24.5378371406251],[102.131339140625,24.4978371406251],[102.178040800781,24.449848859375],[102.191339140625,24.469848859375],[102.203350859375,24.477837140625],[102.207345,24.483843],[102.237005644531,24.4672389960938],[102.25170046875,24.44819846875],[102.310616484375,24.424087140625],[102.290867949219,24.408843],[102.30298953125,24.39948753125],[102.307345,24.3838430000001],[102.285477324219,24.3708791328125],[102.310426054688,24.3560890937501],[102.331065703125,24.317563703125],[102.343624296875,24.3101222968751],[102.351065703125,24.277563703125],[102.363624296875,24.260122296875],[102.372708769531,24.2203835273438],[102.417237578125,24.2356740546876],[102.461065703125,24.197563703125],[102.513624296875,24.170122296875],[102.517345,24.1538430000001],[102.507345,24.1538430000001],[102.507345,24.143843],[102.512323027344,24.1373952460937],[102.55170046875,24.10819846875],[102.567345,24.103843]]]]}},{"type":"Feature","properties":{"name":"红塔区","id":"530402"},"geometry":{"type":"MultiPolygon","coordinates":[[[[102.517345,24.1538430000001],[102.517345,24.143843],[102.507345,24.143843],[102.507345,24.1538430000001],[102.517345,24.1538430000001]]],[[[102.657345,24.443843],[102.669537382813,24.4404201484376],[102.660767851563,24.4316506171875],[102.657345,24.443843]]],[[[102.657345,24.443843],[102.651248808594,24.4399391914063],[102.639539824219,24.4216481757812],[102.613648710938,24.4050759101563],[102.637615996094,24.3504201484375],[102.615150175781,24.3360378242188],[102.603441191406,24.3177468085938],[102.578189726563,24.3015798164063],[102.603441191406,24.2699391914062],[102.607345,24.243843],[102.580704375,24.2404836250001],[102.547415800781,24.2239357734375],[102.554976835938,24.208452375],[102.536688261719,24.1854274726563],[102.550096464844,24.1579738593751],[102.517345,24.1538430000001],[102.513624296875,24.170122296875],[102.461065703125,24.197563703125],[102.417237578125,24.2356740546876],[102.372708769531,24.2203835273438],[102.363624296875,24.260122296875],[102.351065703125,24.277563703125],[102.343624296875,24.3101222968751],[102.331065703125,24.317563703125],[102.310426054688,24.3560890937501],[102.285477324219,24.3708791328125],[102.307345,24.3838430000001],[102.331790800781,24.3993971992188],[102.363031035156,24.4083278632813],[102.361722441406,24.4188430000001],[102.362967558594,24.428843],[102.360535917969,24.4483888984375],[102.372899199219,24.4582888007813],[102.387193632813,24.5082888007813],[102.402899199219,24.4993971992188],[102.41834109375,24.48011253125],[102.444610625,24.512915265625],[102.493704863281,24.5068093085938],[102.512144804688,24.5298390937501],[102.532406035156,24.5179299140626],[102.561951933594,24.5395143867188],[102.572345,24.5382204414063],[102.600125761719,24.5416774726563],[102.603023710938,24.5183888984375],[102.582899199219,24.5022731757813],[102.621800566406,24.4969094062501],[102.671402617188,24.5030788398437],[102.687345,24.4638430000001],[102.687345,24.4538430000001],[102.657345,24.4538430000001],[102.657345,24.443843]]]]}},{"type":"Feature","properties":{"name":"江川县","id":"530421"},"geometry":{"type":"MultiPolygon","coordinates":[[[[102.657345,24.443843],[102.660767851563,24.4316506171875],[102.669537382813,24.4404201484376],[102.657345,24.4538430000001],[102.687345,24.4538430000001],[102.687345,24.4638430000001],[102.731468535156,24.4811891914062],[102.752752714844,24.4780446601563],[102.807345,24.513843],[102.863260527344,24.5179274726563],[102.887345,24.523843],[102.891429472656,24.4179274726563],[102.914185820313,24.3885646796876],[102.899132109375,24.3781716132813],[102.906451445313,24.3455251289063],[102.886776152344,24.2986818671876],[102.894503203125,24.2642116523438],[102.883260527344,24.2479274726563],[102.84978640625,24.2393361640625],[102.821429472656,24.2197585273438],[102.817345,24.213843],[102.79197390625,24.20772971875],[102.770404082031,24.2214235664063],[102.744285917969,24.2162624335938],[102.704469023438,24.2415407539063],[102.683170195313,24.2280178046875],[102.626788359375,24.21671409375],[102.607345,24.243843],[102.603441191406,24.2699391914062],[102.578189726563,24.3015798164063],[102.603441191406,24.3177468085938],[102.615150175781,24.3360378242188],[102.637615996094,24.3504201484375],[102.613648710938,24.4050759101563],[102.639539824219,24.4216481757812],[102.651248808594,24.4399391914063],[102.657345,24.443843]]]]}},{"type":"Feature","properties":{"name":"通海县","id":"530423"},"geometry":{"type":"MultiPolygon","coordinates":[[[[102.607345,24.053843],[102.607345,24.0438430000001],[102.597345,24.0438430000001],[102.597345,24.053843],[102.607345,24.053843]]],[[[102.607345,24.053843],[102.61834109375,24.0783913398438],[102.582740507813,24.0905226875001],[102.571319609375,24.0869655585938],[102.567345,24.103843],[102.580042753906,24.1092775703125],[102.571397734375,24.1268410468751],[102.567345,24.103843],[102.55170046875,24.10819846875],[102.512323027344,24.1373952460937],[102.507345,24.143843],[102.517345,24.143843],[102.517345,24.1538430000001],[102.550096464844,24.1579738593751],[102.536688261719,24.1854274726563],[102.554976835938,24.208452375],[102.547415800781,24.2239357734375],[102.580704375,24.2404836250001],[102.607345,24.243843],[102.626788359375,24.21671409375],[102.683170195313,24.2280178046875],[102.704469023438,24.2415407539063],[102.744285917969,24.2162624335938],[102.770404082031,24.2214235664063],[102.79197390625,24.20772971875],[102.817345,24.213843],[102.821673613281,24.2075710273438],[102.844320097656,24.2126491523438],[102.838983183594,24.1888430000001],[102.86422,24.1793996406251],[102.85060671875,24.1584963203125],[102.864105253906,24.14917503125],[102.88408328125,24.1184963203125],[102.871073027344,24.1095143867187],[102.879464140625,24.0720876289063],[102.837345,24.0438430000001],[102.751790800781,24.0193971992188],[102.730543242188,23.9844118476563],[102.692596464844,23.9540261054687],[102.687345,23.9238430000001],[102.640435820313,23.9277150703125],[102.645460234375,23.943843],[102.640787382813,23.9588430000001],[102.647017851563,23.978843],[102.640787382813,23.9988430000001],[102.646058378906,24.0157619453126],[102.608675566406,24.028501203125],[102.62857546875,24.0407619453125],[102.607345,24.053843]]]]}},{"type":"Feature","properties":{"name":"新平彝族傣族自治县","id":"530427"},"geometry":{"type":"MultiPolygon","coordinates":[[[[102.150152617188,23.838843],[102.137345,23.833843],[102.124537382813,23.838843],[102.137345,23.8438430000001],[102.150152617188,23.838843]]],[[[101.817345,24.253843],[101.805152617188,24.2504201484376],[101.813922148438,24.2416506171875],[101.842242460938,24.2414675117188],[101.862359648438,24.2512917304688],[101.877345,24.243843],[101.887345,24.243843],[101.896419707031,24.2329177070313],[101.918270292969,24.2147682929687],[101.931883574219,24.1983815742188],[101.953873320313,24.1888430000001],[101.949659453125,24.1475002265626],[101.99213015625,24.1593752265625],[102.017345,24.1568044257813],[102.042611113281,24.1593801093751],[102.074212675781,24.147505109375],[102.120750761719,24.1522487617188],[102.092806425781,24.1034596992188],[102.111883574219,24.0883815742188],[102.143450957031,24.0746901679688],[102.1384778125,24.0259011054688],[102.172345,24.0293532539063],[102.182735625,24.0282936835938],[102.199058867188,24.0479470039063],[102.21201296875,24.01808128125],[102.227345,24.023843],[102.234605742188,23.9977712226563],[102.269940214844,23.9501100898438],[102.276070585938,23.908637921875],[102.209964628906,23.8992409492188],[102.16170046875,23.8794875312501],[102.148631621094,23.8625563789063],[102.137345,23.8538430000001],[102.131385527344,23.8582741523438],[102.134285917969,23.8751247382813],[102.100291777344,23.8886330390625],[102.027957792969,23.8981081367188],[102.000282011719,23.8609059882813],[101.962479277344,23.8327858710938],[101.952567167969,23.7962233710938],[101.931705351563,23.7998146796876],[101.923079863281,23.7781081367188],[101.877935820313,23.7658693671876],[101.820731230469,23.7304665351563],[101.785394316406,23.7195778632813],[101.747454863281,23.7705837226563],[101.698328886719,23.7621266914063],[101.741507597656,23.7092555976563],[101.701610136719,23.6795778632813],[101.697345,23.6638430000001],[101.682345,23.6692263007813],[101.634771757813,23.6521559882813],[101.622345,23.6382472968751],[101.612625761719,23.6491237617188],[101.596783476563,23.6632814765625],[101.573160429688,23.6897194648438],[101.546800566406,23.6753957343751],[101.532625761719,23.7147927070313],[101.571568632813,23.7326662421875],[101.545562773438,23.7805251289063],[101.503543730469,23.7780202460938],[101.4351965625,23.7250539375001],[101.422625761719,23.7391237617188],[101.404542265625,23.7552834296875],[101.4226575,23.788618390625],[101.420992460938,23.8165407539063],[101.397345,23.823843],[101.40170046875,23.82948753125],[101.438678007813,23.8516017890625],[101.465631132813,23.8476174140625],[101.50744265625,23.9077443671876],[101.537940703125,23.9202272773438],[101.496058378906,23.9525563789062],[101.476324492188,23.9781227851563],[101.451522246094,23.9882717109375],[101.453140898438,23.9992336250001],[101.435516386719,24.028452375],[101.41170046875,24.03819846875],[101.40298953125,24.07948753125],[101.38170046875,24.10819846875],[101.371624785156,24.1328224921875],[101.35170046875,24.14819846875],[101.34298953125,24.19948753125],[101.32170046875,24.22819846875],[101.30298953125,24.2594875312501],[101.277345,24.293843],[101.284010039063,24.3154274726563],[101.369686308594,24.354751203125],[101.383194609375,24.37960471875],[101.380980253906,24.4167214179688],[101.392345,24.429438703125],[101.410257597656,24.409389875],[101.441217070313,24.395180890625],[101.454752226563,24.3370119453126],[101.487979765625,24.2294020820313],[101.527530546875,24.2270436835938],[101.579002714844,24.2506667304688],[101.592064238281,24.2791237617188],[101.622625761719,24.3185622382813],[101.639251738281,24.3547853828125],[101.660477324219,24.378540265625],[101.714661894531,24.3365480781251],[101.754432402344,24.318296125],[101.781812773438,24.28765159375],[101.805631132813,24.3143093085937],[101.822940703125,24.298843],[101.802760039063,24.2808107734376],[101.8020325,24.26858909375],[101.812625761719,24.2591237617188],[101.817345,24.253843]]]]}},{"type":"Feature","properties":{"name":"易门县","id":"530425"},"geometry":{"type":"MultiPolygon","coordinates":[[[[101.937345,24.623843],[101.933922148438,24.6116506171875],[101.925152617188,24.6204201484375],[101.937345,24.623843]]],[[[101.937345,24.623843],[101.923485136719,24.6417995429688],[101.912706328125,24.6278322578126],[101.89298953125,24.635044171875],[101.945091582031,24.675259015625],[101.941605253906,24.698843],[101.943160429688,24.7093556953125],[101.931529570313,24.7183303046876],[101.937847929688,24.7610744453125],[101.978631621094,24.7925563789062],[102.005072050781,24.8268093085938],[101.997345,24.8738430000001],[102.047332792969,24.8675978828125],[102.083802519531,24.872134015625],[102.081217070313,24.8929201484376],[102.112899199219,24.9182888007813],[102.123858671875,24.956626203125],[102.171790800781,24.9182888007813],[102.219893828125,24.9045363593751],[102.227345,24.9138430000001],[102.264383574219,24.9229396796875],[102.258531523438,24.89683128125],[102.287135039063,24.8770827460938],[102.294586210938,24.8438430000001],[102.291224394531,24.828843],[102.294586210938,24.813843],[102.290103789063,24.793843],[102.293465605469,24.778843],[102.291224394531,24.7688430000001],[102.295819121094,24.7483449531251],[102.281214628906,24.6888845039062],[102.287498808594,24.66085471875],[102.27060671875,24.6491896796875],[102.284835234375,24.62733909375],[102.296158476563,24.5768312812501],[102.271429472656,24.5597585273438],[102.267345,24.553843],[102.197550078125,24.5071633125],[102.207345,24.483843],[102.203350859375,24.477837140625],[102.191339140625,24.469848859375],[102.178040800781,24.449848859375],[102.131339140625,24.4978371406251],[102.108863554688,24.5378371406251],[102.052406035156,24.5214528632813],[102.03935671875,24.5018312812501],[102.021339140625,24.4898488593751],[102.013350859375,24.477837140625],[102.007345,24.473843],[101.997345,24.473843],[101.997345,24.4638430000001],[101.958070097656,24.4683083320313],[101.943260527344,24.4897585273438],[101.916478300781,24.5082497382813],[101.898331328125,24.5789626289063],[101.938951445313,24.5893874335938],[101.951429472656,24.6141188789063],[101.937345,24.623843]]]]}},{"type":"Feature","properties":{"name":"元江哈尼族彝族傣族自治县","id":"530428"},"geometry":{"type":"MultiPolygon","coordinates":[[[[102.137345,23.833843],[102.181038847656,23.7660768867188],[102.152760039063,23.7408107734375],[102.150318632813,23.6998586250001],[102.177345,23.698247296875],[102.212891875,23.7003664375],[102.292625761719,23.6291237617188],[102.302064238281,23.5985622382813],[102.312625761719,23.5791237617187],[102.331500273438,23.5379982734375],[102.362064238281,23.5106911445313],[102.352625761719,23.4885622382813],[102.334932890625,23.456001203125],[102.317345,23.413843],[102.253963652344,23.4242555976563],[102.202857695313,23.4167018867188],[102.192579375,23.4300173164063],[102.171947050781,23.4175710273438],[102.14298953125,23.33819846875],[102.097337675781,23.3108962226562],[102.080809355469,23.332309796875],[102.05205203125,23.3280617500001],[102.02298953125,23.3394875312501],[101.97170046875,23.34819846875],[101.925828886719,23.3615749335938],[101.895264921875,23.3570583320313],[101.877345,23.333843],[101.861429472656,23.3379274726563],[101.843260527344,23.3497585273438],[101.821051054688,23.3580690742188],[101.823624296875,23.3695510078125],[101.786304960938,23.3908522773438],[101.758179960938,23.384546125],[101.743260527344,23.4141188789063],[101.791356230469,23.4473268867188],[101.771429472656,23.4779274726563],[101.760538359375,23.507036359375],[101.731429472656,23.5179274726563],[101.716800566406,23.5391139960938],[101.723624296875,23.5695510078126],[101.691429472656,23.5879274726562],[101.683260527344,23.6097585273438],[101.670103789063,23.6188430000001],[101.683260527344,23.6279274726562],[101.704600859375,23.658833234375],[101.697345,23.6638430000001],[101.701610136719,23.6795778632813],[101.741507597656,23.7092555976563],[101.698328886719,23.7621266914063],[101.747454863281,23.7705837226563],[101.785394316406,23.7195778632813],[101.820731230469,23.7304665351563],[101.877935820313,23.7658693671876],[101.923079863281,23.7781081367188],[101.931705351563,23.7998146796876],[101.952567167969,23.7962233710938],[101.962479277344,23.8327858710938],[102.000282011719,23.8609059882813],[102.027957792969,23.8981081367188],[102.100291777344,23.8886330390625],[102.134285917969,23.8751247382813],[102.131385527344,23.8582741523438],[102.137345,23.8538430000001],[102.137345,23.8438430000001],[102.124537382813,23.838843],[102.137345,23.833843]]]]}},{"type":"Feature","properties":{"name":"华宁县","id":"530424"},"geometry":{"type":"MultiPolygon","coordinates":[[[[103.037345,24.0338430000001],[103.047345,24.0338430000001],[103.042345,24.0210353828126],[103.037345,24.0338430000001]]],[[[103.047345,24.0338430000001],[103.050767851563,24.0460353828125],[103.059537382813,24.0372658515625],[103.047345,24.0338430000001]]],[[[103.037345,24.0338430000001],[103.011429472656,24.0379274726563],[102.962550078125,24.07022971875],[102.923831816406,24.0539675117187],[102.903260527344,24.0179274726563],[102.881051054688,24.0096169257813],[102.883648710938,23.9980275703126],[102.851224394531,23.9897585273438],[102.837345,24.0438430000001],[102.879464140625,24.0720876289063],[102.871073027344,24.1095143867187],[102.88408328125,24.1184963203125],[102.864105253906,24.14917503125],[102.85060671875,24.1584963203125],[102.86422,24.1793996406251],[102.838983183594,24.1888430000001],[102.844320097656,24.2126491523438],[102.821673613281,24.2075710273438],[102.817345,24.213843],[102.821429472656,24.2197585273438],[102.84978640625,24.2393361640625],[102.883260527344,24.2479274726563],[102.894503203125,24.2642116523438],[102.886776152344,24.2986818671876],[102.906451445313,24.3455251289063],[102.899132109375,24.3781716132813],[102.914185820313,24.3885646796876],[102.891429472656,24.4179274726563],[102.887345,24.523843],[102.932899199219,24.5193971992188],[102.95634890625,24.4901125312501],[102.992772246094,24.5355959296875],[103.031016875,24.5517116523438],[103.037345,24.5738430000001],[103.043985625,24.570483625],[103.051353789063,24.5559181953125],[103.067345,24.5637258125],[103.082345,24.55640159375],[103.103533964844,24.5667482734376],[103.107345,24.513843],[103.101585722656,24.4889846015626],[103.105091582031,24.4652590156251],[103.053678007813,24.4255763984376],[103.098741484375,24.4071315742188],[103.089427519531,24.3440993476563],[103.10170046875,24.32819846875],[103.135091582031,24.302426984375],[103.129173613281,24.2623879218751],[103.149141875,24.2292873359375],[103.127345,24.173843],[103.123260527344,24.1679274726563],[103.10412234375,24.1547145820313],[103.07056765625,24.0929714179688],[103.050584746094,24.07917503125],[103.030960722656,24.0490407539063],[103.037345,24.0338430000001]]]]}},{"type":"Feature","properties":{"name":"澄江县","id":"530422"},"geometry":{"type":"MultiPolygon","coordinates":[[[[103.009127226563,24.9147487617188],[103.02634890625,24.8709377265625],[103.021605253906,24.8388430000001],[103.023822050781,24.823843],[103.013255644531,24.7523268867188],[103.044471464844,24.771157453125],[103.075391875,24.7585036445313],[103.058631621094,24.7175563789063],[103.036285429688,24.6805080390625],[103.031593046875,24.6487599921875],[103.043155546875,24.5886232734376],[103.037345,24.5738430000001],[103.031016875,24.5517116523438],[102.992772246094,24.5355959296875],[102.95634890625,24.4901125312501],[102.932899199219,24.5193971992188],[102.887345,24.523843],[102.863260527344,24.5179274726563],[102.807345,24.513843],[102.787633085938,24.544829328125],[102.811763945313,24.6293386054688],[102.847345,24.703843],[102.861297636719,24.713843],[102.847345,24.7238430000001],[102.835677519531,24.7535231757812],[102.881112089844,24.7468093085938],[102.915740996094,24.7724831367188],[102.90048953125,24.8112819648438],[102.907940703125,24.8617116523438],[102.932345,24.8581032539063],[102.946851835938,24.8602468085937],[102.96978640625,24.8899611640625],[102.9910559375,24.8868166328126],[102.997345,24.923843],[103.009127226563,24.9147487617188]]]]}}]}