echarts笔记-GeoJSON河北数据下并裁剪为冀北地图并使用echarts加载

首先找个网站把河北的GeoJSON数据下载下来,我用的是这个,理论上任意一个都可以

DataV.GeoAtlas地理小工具系列

将json数据下载后,进行裁剪,仅保留冀北数据。

如下,我裁剪的数据:

{"type": "FeatureCollection","features": [{"type": "Feature","properties": {"adcode": 130200,"name": "唐山市","center": [118.175393, 39.635113],"centroid": [118.343325, 39.71703],"childrenNum": 14,"level": "city","parent": {"adcode": 130000},"subFeatureIndex": 1,"acroutes": [100000, 130000]},"geometry": {"type": "MultiPolygon","coordinates": [[[[119.319039, 39.429554],[119.280403, 39.422852],[119.257401, 39.429752],[119.212295, 39.463453],[119.185769, 39.458986],[119.064545, 39.473763],[119.048399, 39.459052],[119.004894, 39.467459],[119.015658, 39.482103],[119.008098, 39.509347],[118.961453, 39.51591],[118.966067, 39.529494],[118.983302, 39.538942],[118.945243, 39.544781],[118.938452, 39.557572],[118.895139, 39.547011],[118.882261, 39.566557],[118.861309, 39.574754],[118.844586, 39.615004],[118.850097, 39.622737],[118.824596, 39.648681],[118.822225, 39.668984],[118.804157, 39.679985],[118.787242, 39.71592],[118.774428, 39.764198],[118.800185, 39.775706],[118.797942, 39.790415],[118.825429, 39.799436],[118.816843, 39.825836],[118.838179, 39.847981],[118.835232, 39.859018],[118.853556, 39.88409],[118.859643, 39.93362],[118.875149, 39.941121],[118.884247, 39.961794],[118.88508, 40.005403],[118.865602, 40.023777],[118.866307, 40.061942],[118.900521, 40.086549],[118.918269, 40.092211],[118.92474, 40.149653],[118.906736, 40.169679],[118.888924, 40.168768],[118.867652, 40.180599],[118.849135, 40.178974],[118.794482, 40.204838],[118.775581, 40.194182],[118.743609, 40.191777],[118.746108, 40.208087],[118.708562, 40.216078],[118.665634, 40.242577],[118.628472, 40.249915],[118.571384, 40.269845],[118.568949, 40.287564],[118.533325, 40.298854],[118.532364, 40.319419],[118.539989, 40.361048],[118.558377, 40.36928],[118.550881, 40.385482],[118.571512, 40.414636],[118.548062, 40.422667],[118.523458, 40.40628],[118.503211, 40.403365],[118.45599, 40.414053],[118.430746, 40.411851],[118.402683, 40.416838],[118.387305, 40.436719],[118.360011, 40.428819],[118.356295, 40.435295],[118.306575, 40.419558],[118.277935, 40.425711],[118.262942, 40.452063],[118.239684, 40.464686],[118.173818, 40.423056],[118.156967, 40.423768],[118.153123, 40.409519],[118.165232, 40.400449],[118.133837, 40.375113],[118.121856, 40.354695],[118.079312, 40.353528],[118.061564, 40.319095],[118.031643, 40.302358],[118.000888, 40.29256],[117.909457, 40.285876],[117.897989, 40.270429],[117.867554, 40.26965],[117.844104, 40.261406],[117.807775, 40.261926],[117.75152, 40.229718],[117.714551, 40.241668],[117.694112, 40.238161],[117.677069, 40.22095],[117.64625, 40.205163],[117.619532, 40.206398],[117.609409, 40.194897],[117.575451, 40.192817],[117.576412, 40.178584],[117.601208, 40.171239],[117.630232, 40.147833],[117.635999, 40.132094],[117.650159, 40.128191],[117.65317, 40.110757],[117.644841, 40.096181],[117.668099, 40.100931],[117.67489, 40.082123],[117.708272, 40.093643],[117.721983, 40.07991],[117.751648, 40.081993],[117.758184, 40.065978],[117.776188, 40.059272],[117.758312, 40.04436],[117.747932, 40.047421],[117.744152, 40.018434],[117.782467, 40.023516],[117.797075, 40.010225],[117.782019, 39.968315],[117.756326, 39.96512],[117.72775, 39.972422],[117.70667, 39.986046],[117.674698, 39.974834],[117.634589, 39.968901],[117.589226, 39.996866],[117.537777, 39.997452],[117.547323, 39.976855],[117.532907, 39.952469],[117.514967, 39.946665],[117.525539, 39.92964],[117.507406, 39.909023],[117.518811, 39.891271],[117.521374, 39.870641],[117.548092, 39.839882],[117.537264, 39.835178],[117.561419, 39.800024],[117.546106, 39.776164],[117.559305, 39.756088],[117.59589, 39.746147],[117.596082, 39.735222],[117.577629, 39.726913],[117.602425, 39.705384],[117.644777, 39.701849],[117.643944, 39.688692],[117.657014, 39.668657],[117.668355, 39.667085],[117.662012, 39.636365],[117.641957, 39.628438],[117.641189, 39.612645],[117.619084, 39.603207],[117.621967, 39.59167],[117.636191, 39.603731],[117.660795, 39.57541],[117.68495, 39.588916],[117.708913, 39.572918],[117.688794, 39.569246],[117.689563, 39.559539],[117.710194, 39.550422],[117.71596, 39.530084],[117.744857, 39.548585],[117.737745, 39.574033],[117.753122, 39.576],[117.747868, 39.589375],[117.76773, 39.599012],[117.801945, 39.601765],[117.826548, 39.590818],[117.851408, 39.589244],[117.868259, 39.596849],[117.892607, 39.591539],[117.933997, 39.574164],[117.905293, 39.53015],[117.912277, 39.516172],[117.898565, 39.509675],[117.898181, 39.472516],[117.878062, 39.467196],[117.87031, 39.45498],[117.871847, 39.411547],[117.859353, 39.403265],[117.852369, 39.38078],[117.805277, 39.373284],[117.803354, 39.362037],[117.837056, 39.350789],[117.862877, 39.362169],[117.842054, 39.336512],[117.84955, 39.327366],[117.888314, 39.332038],[117.891774, 39.32322],[117.972248, 39.314401],[117.97763, 39.300643],[118.016842, 39.284117],[118.024787, 39.292414],[118.036512, 39.265151],[118.064768, 39.256061],[118.064768, 39.231222],[118.037089, 39.230497],[118.026196, 39.20176],[118.050864, 39.200112],[118.07047, 39.214021],[118.07771, 39.202024],[118.125316, 39.182771],[118.16299, 39.136596],[118.182596, 39.094155],[118.225011, 39.034839],[118.267107, 39.021555],[118.290813, 39.022216],[118.309907, 39.011773],[118.373594, 39.012037],[118.371031, 38.984137],[118.378015, 38.97177],[118.406463, 38.960525],[118.491038, 38.909041],[118.525252, 38.90487],[118.539732, 38.909835],[118.604445, 38.971505],[118.570487, 38.999212],[118.532877, 39.091051],[118.551394, 39.088278],[118.560107, 39.09904],[118.588619, 39.107623],[118.578752, 39.130921],[118.59272, 39.142601],[118.637314, 39.157379],[118.692992, 39.148077],[118.719646, 39.136992],[118.760716, 39.133495],[118.814409, 39.138642],[118.857913, 39.162854],[118.876366, 39.14999],[118.897253, 39.151508],[118.920447, 39.171758],[118.951074, 39.178485],[118.896549, 39.139698],[118.890013, 39.118844],[118.926278, 39.123464],[118.977984, 39.163381],[119.023988, 39.186925],[119.038276, 39.21178],[119.096068, 39.241963],[119.121505, 39.281549],[119.185577, 39.342039],[119.239269, 39.352368],[119.272779, 39.363616],[119.317052, 39.410759],[119.319039, 39.429554]]],[[[117.784581, 39.377032],[117.782147, 39.394785],[117.737296, 39.410562],[117.69975, 39.407604],[117.702313, 39.388934],[117.673224, 39.386698],[117.669124, 39.412008],[117.643495, 39.405829],[117.61415, 39.407078],[117.6014, 39.4195],[117.590636, 39.405435],[117.571158, 39.404646],[117.557895, 39.38558],[117.535342, 39.374007],[117.520862, 39.357236],[117.536239, 39.338026],[117.595249, 39.349144],[117.637536, 39.335986],[117.650799, 39.315191],[117.669316, 39.324141],[117.670982, 39.357828],[117.706221, 39.351513],[117.744601, 39.354604],[117.784581, 39.377032]]],[[[118.630522, 39.054726],[118.640005, 39.042306],[118.653652, 39.056973],[118.638852, 39.076061],[118.620847, 39.068268],[118.630522, 39.054726]]],[[[118.869446, 39.142733],[118.842664, 39.117788],[118.820239, 39.108745],[118.820495, 39.093693],[118.857465, 39.098842],[118.871753, 39.115082],[118.869446, 39.142733]]],[[[118.83914, 39.153817],[118.815177, 39.132373],[118.825749, 39.122672],[118.841511, 39.135475],[118.83914, 39.153817]]]]}},{"type": "Feature","properties": {"adcode": 130300,"name": "秦皇岛市","center": [119.586579, 39.942531],"centroid": [119.193332, 40.088346],"childrenNum": 7,"level": "city","parent": {"adcode": 130000},"subFeatureIndex": 2,"acroutes": [100000, 130000]},"geometry": {"type": "MultiPolygon","coordinates": [[[[119.319039, 39.429554],[119.304238, 39.459972],[119.270024, 39.498582],[119.31276, 39.605894],[119.334928, 39.656148],[119.358122, 39.721744],[119.3735, 39.739671],[119.395925, 39.74425],[119.396886, 39.761124],[119.464738, 39.809239],[119.506641, 39.816493],[119.53778, 39.810154],[119.537652, 39.831259],[119.520352, 39.838183],[119.541048, 39.888138],[119.559564, 39.901518],[119.587948, 39.909936],[119.612936, 39.898907],[119.637027, 39.923182],[119.666436, 39.92018],[119.674317, 39.933424],[119.683543, 39.921942],[119.726279, 39.941056],[119.787212, 39.950382],[119.816877, 39.978224],[119.836739, 39.985786],[119.835522, 39.964468],[119.862432, 39.951556],[119.872363, 39.960621],[119.841032, 40.011789],[119.854231, 40.03231],[119.835009, 40.050286],[119.817069, 40.052826],[119.795285, 40.040387],[119.770873, 40.048788],[119.76043, 40.065653],[119.771578, 40.082253],[119.736723, 40.104836],[119.76248, 40.144776],[119.755496, 40.153165],[119.745949, 40.207957],[119.716797, 40.196066],[119.676239, 40.224522],[119.671562, 40.23959],[119.625174, 40.224132],[119.633503, 40.249395],[119.651892, 40.272377],[119.642153, 40.291327],[119.621458, 40.30359],[119.598136, 40.334206],[119.599801, 40.356575],[119.586667, 40.375437],[119.600442, 40.406863],[119.593458, 40.435683],[119.604927, 40.454976],[119.553542, 40.501762],[119.555464, 40.516833],[119.568855, 40.520778],[119.571033, 40.540887],[119.534256, 40.554203],[119.520288, 40.547416],[119.503886, 40.553945],[119.491007, 40.536167],[119.477809, 40.533322],[119.441864, 40.539852],[119.361839, 40.537331],[119.338068, 40.531253],[119.302188, 40.530283],[119.25612, 40.543279],[119.220624, 40.569133],[119.232862, 40.589421],[119.230812, 40.603891],[119.178209, 40.609316],[119.162575, 40.600015],[119.158474, 40.614418],[119.105487, 40.603632],[119.086394, 40.588775],[119.063392, 40.606151],[119.013095, 40.577081],[118.998359, 40.578955],[118.983366, 40.56364],[118.952676, 40.558469],[118.966003, 40.536102],[118.919038, 40.53093],[118.886938, 40.542438],[118.864, 40.527244],[118.821328, 40.531964],[118.794867, 40.510753],[118.792112, 40.492382],[118.772954, 40.479765],[118.723491, 40.473746],[118.702795, 40.491411],[118.657176, 40.450574],[118.624179, 40.437626],[118.618349, 40.425193],[118.643785, 40.380946],[118.640197, 40.354566],[118.608225, 40.328305],[118.596949, 40.308456],[118.580098, 40.305861],[118.568949, 40.287564],[118.571384, 40.269845],[118.628472, 40.249915],[118.665634, 40.242577],[118.708562, 40.216078],[118.746108, 40.208087],[118.743609, 40.191777],[118.775581, 40.194182],[118.794482, 40.204838],[118.849135, 40.178974],[118.867652, 40.180599],[118.888924, 40.168768],[118.906736, 40.169679],[118.92474, 40.149653],[118.918269, 40.092211],[118.900521, 40.086549],[118.866307, 40.061942],[118.865602, 40.023777],[118.88508, 40.005403],[118.884247, 39.961794],[118.875149, 39.941121],[118.859643, 39.93362],[118.853556, 39.88409],[118.835232, 39.859018],[118.838179, 39.847981],[118.816843, 39.825836],[118.825429, 39.799436],[118.797942, 39.790415],[118.800185, 39.775706],[118.774428, 39.764198],[118.787242, 39.71592],[118.804157, 39.679985],[118.822225, 39.668984],[118.824596, 39.648681],[118.850097, 39.622737],[118.844586, 39.615004],[118.861309, 39.574754],[118.882261, 39.566557],[118.895139, 39.547011],[118.938452, 39.557572],[118.945243, 39.544781],[118.983302, 39.538942],[118.966067, 39.529494],[118.961453, 39.51591],[119.008098, 39.509347],[119.015658, 39.482103],[119.004894, 39.467459],[119.048399, 39.459052],[119.064545, 39.473763],[119.185769, 39.458986],[119.212295, 39.463453],[119.257401, 39.429752],[119.280403, 39.422852],[119.319039, 39.429554]]]]}},{"type": "Feature","properties": {"adcode": 130700,"name": "张家口市","center": [114.884091, 40.811901],"centroid": [115.038685, 40.874645],"childrenNum": 16,"level": "city","parent": {"adcode": 130000},"subFeatureIndex": 6,"acroutes": [100000, 130000]},"geometry": {"type": "MultiPolygon","coordinates": [[[[116.365069, 40.943216],[116.341747, 40.964804],[116.333546, 40.984458],[116.29837, 40.986641],[116.264733, 41.038252],[116.296128, 41.062118],[116.277419, 41.083154],[116.268769, 41.102645],[116.245447, 41.114183],[116.233273, 41.130845],[116.245895, 41.16358],[116.22347, 41.174275],[116.221356, 41.185928],[116.235195, 41.211853],[116.213603, 41.233288],[116.198995, 41.259578],[116.191627, 41.288158],[116.209503, 41.307715],[116.203352, 41.326117],[116.17484, 41.356328],[116.141586, 41.373439],[116.08751, 41.376951],[116.07713, 41.384866],[116.036124, 41.397694],[116.03023, 41.416645],[116.004473, 41.432911],[116.000052, 41.454402],[115.97673, 41.470913],[115.982112, 41.485127],[115.97391, 41.529659],[115.958789, 41.550353],[115.924767, 41.568623],[115.929252, 41.596113],[115.909967, 41.642921],[115.972885, 41.680101],[116.014404, 41.715355],[116.056307, 41.733705],[116.081039, 41.776352],[116.083986, 41.781745],[116.03401, 41.782633],[116.016646, 41.77705],[115.994926, 41.828608],[115.978588, 41.840841],[115.946936, 41.885634],[115.916374, 41.945141],[115.853071, 41.927738],[115.828852, 41.936978],[115.815461, 41.928687],[115.810976, 41.912356],[115.795855, 41.911153],[115.756707, 41.886774],[115.727874, 41.888421],[115.724415, 41.868025],[115.68815, 41.867708],[115.659382, 41.848319],[115.653871, 41.829052],[115.630806, 41.824995],[115.598641, 41.808003],[115.574102, 41.805403],[115.548345, 41.783902],[115.519769, 41.767787],[115.488758, 41.760934],[115.430068, 41.728753],[115.366317, 41.712561],[115.347031, 41.712307],[115.319032, 41.691473],[115.336844, 41.675145],[115.355489, 41.672158],[115.360935, 41.661355],[115.345494, 41.635673],[115.377594, 41.602475],[115.365099, 41.595795],[115.311535, 41.592677],[115.290328, 41.622955],[115.273477, 41.622764],[115.26425, 41.611889],[115.266429, 41.592868],[115.257587, 41.581097],[115.204215, 41.571423],[115.205753, 41.591723],[115.195053, 41.602093],[115.167246, 41.605973],[115.142386, 41.616087],[115.113489, 41.615769],[115.099137, 41.623973],[115.087796, 41.613415],[115.055953, 41.602284],[115.025006, 41.61526],[114.977849, 41.611571],[114.938317, 41.613225],[114.89808, 41.607182],[114.877449, 41.590896],[114.860726, 41.600948],[114.895581, 41.636436],[114.902885, 41.689313],[114.895068, 41.736561],[114.896157, 41.76766],[114.8663, 41.804578],[114.922363, 41.825121],[114.939214, 41.846165],[114.92153, 41.875943],[114.925438, 41.899566],[114.916148, 41.936978],[114.933255, 41.943559],[114.915507, 41.958934],[114.916853, 41.981008],[114.901796, 42.015528],[114.89148, 42.012115],[114.889622, 42.030316],[114.860854, 42.05483],[114.861302, 42.101997],[114.823051, 42.140867],[114.828369, 42.147679],[114.793963, 42.149193],[114.78935, 42.130963],[114.754879, 42.115756],[114.710221, 42.115377],[114.704647, 42.121435],[114.675494, 42.120426],[114.647751, 42.109634],[114.624813, 42.112222],[114.585537, 42.131215],[114.560293, 42.132414],[114.510957, 42.110897],[114.500706, 42.085963],[114.5025, 42.067398],[114.479883, 42.064304],[114.466107, 42.037962],[114.46835, 42.025577],[114.485969, 42.015338],[114.484752, 41.999155],[114.501411, 41.99277],[114.510701, 41.973292],[114.487443, 41.96722],[114.476295, 41.953936],[114.421705, 41.942167],[114.374036, 41.956783],[114.348087, 41.947609],[114.343217, 41.926915],[114.326751, 41.9297],[114.330403, 41.916977],[114.287026, 41.868658],[114.243457, 41.832792],[114.202964, 41.793416],[114.200401, 41.778509],[114.215266, 41.756492],[114.206744, 41.738402],[114.232501, 41.717705],[114.237563, 41.698651],[114.219302, 41.700239],[114.215394, 41.685057],[114.259347, 41.6234],[114.227632, 41.620221],[114.237242, 41.59624],[114.221673, 41.582242],[114.231604, 41.547043],[114.231027, 41.513671],[114.101218, 41.537746],[114.083982, 41.528958],[114.032148, 41.529595],[113.977559, 41.506664],[113.952827, 41.483533],[113.930659, 41.485573],[113.92124, 41.457271],[113.884911, 41.438141],[113.8712, 41.413327],[113.918229, 41.40382],[113.943985, 41.390802],[113.93399, 41.376823],[113.937514, 41.356647],[113.923354, 41.33934],[113.926622, 41.326309],[113.89952, 41.316214],[113.922585, 41.291162],[113.936297, 41.294805],[113.951226, 41.282916],[113.952956, 41.254269],[113.971536, 41.239814],[113.976854, 41.266676],[113.985824, 41.270385],[114.007032, 41.250752],[114.016259, 41.232073],[114.000625, 41.224011],[113.996781, 41.192458],[113.973651, 41.174275],[113.920407, 41.172034],[113.877927, 41.115593],[113.863383, 41.106042],[113.820327, 41.101619],[113.823402, 41.093093],[113.868445, 41.068853],[113.90567, 41.034081],[113.922585, 41.024391],[113.972946, 40.982981],[113.97647, 40.961206],[113.991142, 40.940195],[114.000753, 40.947521],[114.011773, 40.935311],[114.057457, 40.925092],[114.041375, 40.917378],[114.052203, 40.893395],[114.052844, 40.870304],[114.073539, 40.857308],[114.069694, 40.846948],[114.044771, 40.831115],[114.081163, 40.790486],[114.104421, 40.797571],[114.104165, 40.768068],[114.134727, 40.737263],[114.147285, 40.73346],[114.18323, 40.671675],[114.200081, 40.662189],[114.216163, 40.63437],[114.209307, 40.629721],[114.236153, 40.606991],[114.258258, 40.610672],[114.282926, 40.590778],[114.273379, 40.553815],[114.293433, 40.551424],[114.296381, 40.535973],[114.285617, 40.525822],[114.282605, 40.495164],[114.267228, 40.474199],[114.275429, 40.458019],[114.299648, 40.440086],[114.28709, 40.423444],[114.314449, 40.369604],[114.344435, 40.36954],[114.382237, 40.362085],[114.390374, 40.351259],[114.446565, 40.372845],[114.470784, 40.349703],[114.499296, 40.354047],[114.530627, 40.3451],[114.526463, 40.32357],[114.510957, 40.303006],[114.469951, 40.268093],[114.406392, 40.246149],[114.362567, 40.250109],[114.335144, 40.245434],[114.293113, 40.230108],[114.255247, 40.236213],[114.240126, 40.221924],[114.235833, 40.198341],[114.180026, 40.191517],[114.145107, 40.177349],[114.123963, 40.178129],[114.123387, 40.188723],[114.097758, 40.193597],[114.068029, 40.179754],[114.089108, 40.121491],[114.101218, 40.10874],[114.091159, 40.075288],[114.043809, 40.056863],[114.019462, 40.102819],[113.989476, 40.112383],[113.973843, 40.097157],[113.981019, 40.073205],[113.975573, 40.051068],[113.954878, 40.030812],[113.922457, 40.026578],[113.914641, 40.005924],[113.932004, 40.009443],[113.960452, 40.000906],[114.021256, 39.991782],[114.029457, 39.985395],[114.02824, 39.959316],[114.047397, 39.916135],[114.067772, 39.922334],[114.089941, 39.910197],[114.102884, 39.912873],[114.174132, 39.897602],[114.211998, 39.918745],[114.229426, 39.899495],[114.19944, 39.87939],[114.224877, 39.851704],[114.276967, 39.874494],[114.286065, 39.858235],[114.328929, 39.865548],[114.349432, 39.862806],[114.395436, 39.867246],[114.406712, 39.83348],[114.390695, 39.818584],[114.408827, 39.782375],[114.408122, 39.651956],[114.431636, 39.614021],[114.474757, 39.613759],[114.495836, 39.608188],[114.515378, 39.564983],[114.557025, 39.581442],[114.568942, 39.573967],[114.563432, 39.558162],[114.58432, 39.585835],[114.604887, 39.567869],[114.633527, 39.555866],[114.654991, 39.599209],[114.680748, 39.588064],[114.712079, 39.594358],[114.716756, 39.618674],[114.760645, 39.617036],[114.783775, 39.609499],[114.821642, 39.61022],[114.838429, 39.589179],[114.891032, 39.634728],[114.936331, 39.66368],[114.961895, 39.666103],[114.987396, 39.67802],[115.011487, 39.674746],[115.03199, 39.702373],[115.050058, 39.709245],[115.095293, 39.704795],[115.138734, 39.688627],[115.168847, 39.672651],[115.179163, 39.679592],[115.177625, 39.700475],[115.215043, 39.708067],[115.250859, 39.73882],[115.283216, 39.745165],[115.312945, 39.783551],[115.342867, 39.79205],[115.330052, 39.80656],[115.345237, 39.821851],[115.343251, 39.837857],[115.365676, 39.867507],[115.364523, 39.885331],[115.399891, 39.891336],[115.40162, 39.903802],[115.426801, 39.950056],[115.428531, 39.984352],[115.450123, 39.99289],[115.442178, 40.010876],[115.454544, 40.029705],[115.478571, 40.036153],[115.528034, 40.07633],[115.555457, 40.082644],[115.553727, 40.091691],[115.575576, 40.100997],[115.590697, 40.096376],[115.59909, 40.119995],[115.641762, 40.115897],[115.644581, 40.12663],[115.715893, 40.133395],[115.734858, 40.129492],[115.754849, 40.145427],[115.754336, 40.163243],[115.773045, 40.176179],[115.806555, 40.15323],[115.847817, 40.147052],[115.844421, 40.168053],[115.855506, 40.188853],[115.870306, 40.186058],[115.886324, 40.206657],[115.883121, 40.216143],[115.898498, 40.234524],[115.911953, 40.23446],[115.930085, 40.254524],[115.960007, 40.256667],[115.968913, 40.264263],[115.93976, 40.304434],[115.943156, 40.311375],[115.922653, 40.325905],[115.918296, 40.353917],[115.864476, 40.359363],[115.861849, 40.373428],[115.846856, 40.375113],[115.796431, 40.426812],[115.770418, 40.444165],[115.769841, 40.468051],[115.782207, 40.492058],[115.736012, 40.503832],[115.755041, 40.540046],[115.792203, 40.561313],[115.819818, 40.559374],[115.827378, 40.587031],[115.846151, 40.593039],[115.885427, 40.595235],[115.907788, 40.617324],[115.971988, 40.602341],[115.981407, 40.579665],[116.005113, 40.584124],[116.0285, 40.607314],[116.030037, 40.597367],[116.062714, 40.610285],[116.099363, 40.630561],[116.121724, 40.62914],[116.112562, 40.648507],[116.136909, 40.667674],[116.162025, 40.662383],[116.171316, 40.695996],[116.191947, 40.724241],[116.218857, 40.742807],[116.235003, 40.783143],[116.247946, 40.791839],[116.269602, 40.777152],[116.273446, 40.762913],[116.290938, 40.763815],[116.307917, 40.752152],[116.317015, 40.772256],[116.379806, 40.77232],[116.414276, 40.777925],[116.416519, 40.769357],[116.453937, 40.765877],[116.465854, 40.774511],[116.456564, 40.798665],[116.43683, 40.820751],[116.40646, 40.833368],[116.399988, 40.84978],[116.334443, 40.904648],[116.334571, 40.921749],[116.365069, 40.943216]]]]}},{"type": "Feature","properties": {"adcode": 130800,"name": "承德市","center": [117.939152, 40.976204],"centroid": [117.551533, 41.356206],"childrenNum": 11,"level": "city","parent": {"adcode": 130000},"subFeatureIndex": 7,"acroutes": [100000, 130000]},"geometry": {"type": "MultiPolygon","coordinates": [[[[119.158474, 40.614418],[119.146557, 40.63579],[119.173211, 40.654316],[119.185833, 40.67574],[119.176222, 40.690191],[119.153349, 40.688707],[119.115098, 40.666513],[119.095107, 40.663351],[119.081588, 40.671869],[119.05423, 40.664964],[119.048719, 40.681482],[119.027063, 40.692448],[119.010725, 40.687868],[118.987723, 40.697931],[118.960813, 40.720566],[118.949344, 40.747834],[118.91167, 40.756083],[118.895459, 40.754021],[118.910965, 40.776766],[118.878544, 40.783207],[118.861501, 40.802658],[118.849135, 40.800919],[118.846252, 40.822103],[118.855094, 40.840577],[118.873034, 40.848042],[118.891743, 40.903362],[118.903468, 40.961784],[118.917052, 40.968594],[118.946461, 40.958122],[119.000601, 40.967052],[119.005086, 40.984265],[119.0204, 40.997878],[119.013544, 41.007637],[118.951971, 41.018421],[118.936209, 41.037482],[118.93685, 41.052624],[118.964657, 41.079307],[119.008354, 41.068596],[119.037507, 41.067378],[119.050834, 41.080333],[119.073771, 41.084244],[119.080627, 41.095978],[119.081204, 41.131422],[119.126374, 41.138662],[119.158603, 41.169664],[119.184295, 41.182727],[119.188909, 41.198156],[119.166483, 41.21294],[119.169623, 41.222923],[119.209796, 41.225803],[119.20954, 41.244483],[119.231004, 41.256444],[119.248367, 41.27665],[119.239461, 41.314489],[119.212103, 41.308099],[119.200698, 41.28234],[119.154951, 41.297682],[119.093121, 41.293655],[119.035136, 41.298768],[119.006752, 41.307076],[118.974716, 41.306565],[118.949536, 41.318003],[118.934671, 41.304584],[118.890718, 41.300749],[118.868421, 41.312636],[118.844907, 41.34247],[118.846124, 41.373823],[118.770007, 41.353071],[118.763343, 41.328928],[118.741879, 41.324073],[118.695171, 41.337999],[118.676974, 41.350453],[118.629946, 41.34643],[118.57997, 41.354029],[118.539796, 41.3509],[118.528135, 41.355051],[118.500841, 41.345791],[118.47329, 41.345663],[118.412422, 41.33193],[118.399607, 41.311102],[118.380193, 41.312124],[118.349119, 41.342789],[118.348286, 41.373886],[118.361741, 41.386717],[118.343993, 41.404139],[118.34867, 41.428318],[118.327078, 41.450831],[118.272168, 41.471296],[118.269605, 41.478881],[118.295426, 41.485127],[118.315801, 41.512525],[118.302923, 41.552709],[118.313302, 41.561494],[118.301577, 41.569641],[118.279152, 41.56544],[118.270823, 41.573524],[118.230522, 41.582178],[118.215337, 41.595668],[118.20989, 41.61774],[118.215208, 41.633002],[118.206879, 41.65074],[118.169013, 41.67076],[118.153699, 41.691156],[118.155173, 41.712624],[118.130698, 41.742275],[118.140372, 41.783965],[118.165873, 41.813265],[118.219117, 41.815358],[118.236032, 41.807559],[118.246988, 41.774005],[118.270823, 41.762203],[118.292287, 41.772863],[118.319838, 41.83146],[118.331755, 41.840651],[118.340213, 41.872459],[118.324515, 41.880187],[118.286649, 41.91109],[118.270182, 41.917357],[118.268901, 41.930143],[118.306511, 41.940269],[118.306255, 41.975127],[118.314007, 41.987774],[118.294722, 42.005224],[118.256278, 42.010724],[118.237634, 42.022859],[118.283061, 42.03158],[118.297284, 42.048765],[118.272232, 42.083311],[118.252498, 42.091014],[118.226613, 42.090256],[118.212581, 42.081101],[118.220206, 42.058619],[118.204188, 42.034866],[118.189067, 42.030569],[118.141846, 42.031327],[118.116538, 42.037204],[118.115256, 42.045859],[118.136913, 42.052871],[118.155173, 42.081164],[118.136528, 42.094486],[118.097765, 42.10509],[118.088859, 42.117144],[118.104172, 42.148878],[118.10635, 42.171958],[118.089051, 42.183874],[118.033629, 42.199127],[118.020366, 42.213432],[117.977438, 42.229875],[117.971095, 42.248014],[118.023249, 42.267155],[118.047468, 42.280563],[118.059962, 42.29831],[118.016265, 42.333286],[118.009153, 42.358248],[118.021263, 42.371636],[118.019405, 42.395201],[117.99762, 42.416684],[117.954564, 42.445003],[117.940148, 42.462766],[117.87409, 42.510194],[117.849614, 42.546619],[117.829624, 42.56498],[117.797588, 42.585277],[117.792334, 42.598367],[117.801496, 42.612706],[117.779904, 42.618591],[117.707247, 42.588033],[117.66733, 42.582459],[117.6442, 42.589787],[117.610883, 42.592355],[117.600311, 42.603001],[117.539955, 42.605443],[117.524898, 42.590727],[117.473512, 42.602437],[117.455957, 42.589411],[117.435197, 42.585403],[117.44436, 42.577447],[117.433147, 42.555769],[117.39637, 42.536339],[117.387015, 42.517405],[117.408415, 42.519976],[117.416296, 42.512326],[117.412836, 42.472493],[117.390732, 42.462076],[117.330056, 42.461887],[117.321406, 42.468791],[117.275466, 42.481905],[117.252208, 42.473685],[117.222287, 42.475442],[117.175963, 42.465527],[117.135726, 42.469167],[117.094912, 42.483661],[117.079535, 42.460632],[117.046922, 42.454105],[117.016744, 42.45649],[117.006685, 42.432948],[116.965102, 42.421583],[116.914421, 42.402677],[116.911858, 42.391431],[116.886806, 42.366608],[116.897442, 42.297618],[116.918522, 42.229875],[116.917433, 42.207698],[116.903401, 42.19087],[116.858166, 42.197236],[116.789225, 42.200261],[116.825169, 42.155563],[116.850221, 42.15632],[116.865022, 42.124085],[116.877324, 42.121057],[116.890651, 42.092655],[116.881681, 42.05224],[116.87963, 42.018372],[116.868161, 42.002885],[116.831961, 42.005351],[116.821133, 41.988723],[116.796209, 41.978099],[116.766479, 41.990304],[116.744631, 41.982146],[116.72746, 41.951089],[116.669154, 41.947735],[116.634812, 41.929953],[116.597073, 41.935586],[116.566383, 41.928751],[116.533706, 41.938876],[116.514164, 41.970067],[116.496416, 41.97968],[116.482641, 41.975886],[116.453873, 41.945964],[116.432088, 41.939383],[116.393133, 41.94299],[116.41402, 41.98221],[116.409087, 41.994034],[116.373719, 42.009965],[116.327267, 42.005667],[116.306507, 41.991379],[116.29837, 41.968106],[116.28421, 41.959376],[116.233401, 41.941408],[116.230518, 41.926282],[116.211361, 41.906848],[116.212578, 41.885128],[116.193164, 41.861816],[116.171124, 41.868912],[116.134731, 41.863844],[116.106667, 41.849587],[116.105706, 41.834757],[116.129221, 41.806607],[116.098658, 41.776479],[116.081039, 41.776352],[116.056307, 41.733705],[116.014404, 41.715355],[115.972885, 41.680101],[115.909967, 41.642921],[115.929252, 41.596113],[115.924767, 41.568623],[115.958789, 41.550353],[115.97391, 41.529659],[115.982112, 41.485127],[115.97673, 41.470913],[116.000052, 41.454402],[116.004473, 41.432911],[116.03023, 41.416645],[116.036124, 41.397694],[116.07713, 41.384866],[116.08751, 41.376951],[116.141586, 41.373439],[116.17484, 41.356328],[116.203352, 41.326117],[116.209503, 41.307715],[116.191627, 41.288158],[116.198995, 41.259578],[116.213603, 41.233288],[116.235195, 41.211853],[116.221356, 41.185928],[116.22347, 41.174275],[116.245895, 41.16358],[116.233273, 41.130845],[116.245447, 41.114183],[116.268769, 41.102645],[116.277419, 41.083154],[116.296128, 41.062118],[116.264733, 41.038252],[116.29837, 40.986641],[116.333546, 40.984458],[116.341747, 40.964804],[116.365069, 40.943216],[116.37641, 40.939681],[116.398515, 40.905999],[116.41402, 40.899762],[116.458678, 40.900597],[116.474184, 40.896032],[116.473607, 40.919757],[116.447466, 40.953818],[116.455539, 40.980476],[116.516791, 40.975274],[116.536333, 40.988889],[116.569715, 40.991265],[116.597778, 40.97476],[116.614309, 40.982916],[116.622958, 41.02086],[116.614116, 41.03607],[116.630839, 41.060771],[116.64769, 41.059296],[116.665182, 41.046658],[116.688632, 41.044669],[116.698884, 41.021246],[116.683058, 41.000511],[116.67774, 40.971227],[116.689465, 40.950669],[116.722334, 40.927406],[116.713236, 40.911978],[116.730471, 40.897768],[116.759496, 40.889858],[116.79512, 40.863614],[116.805051, 40.840706],[116.813636, 40.848428],[116.847723, 40.839354],[116.87617, 40.821202],[116.880207, 40.804332],[116.896353, 40.79712],[116.894623, 40.781597],[116.923391, 40.773738],[116.926531, 40.744869],[116.979967, 40.702833],[117.031032, 40.692126],[117.058327, 40.701543],[117.0771, 40.700059],[117.110673, 40.70825],[117.117785, 40.700059],[117.20236, 40.695609],[117.241636, 40.676643],[117.261371, 40.681159],[117.290395, 40.660189],[117.32115, 40.658317],[117.342678, 40.673611],[117.359208, 40.673869],[117.409248, 40.687288],[117.442245, 40.676643],[117.492862, 40.675417],[117.514583, 40.660511],[117.501256, 40.636759],[117.477997, 40.635338],[117.46198, 40.65309],[117.448909, 40.628366],[117.430264, 40.626041],[117.412708, 40.605118],[117.430008, 40.576112],[117.402072, 40.573139],[117.387464, 40.560861],[117.365936, 40.575982],[117.342742, 40.581604],[117.311859, 40.57805],[117.269444, 40.560473],[117.247403, 40.54024],[117.264126, 40.517285],[117.247147, 40.511788],[117.219019, 40.514375],[117.208575, 40.501115],[117.237215, 40.468763],[117.236511, 40.45653],[117.263357, 40.442352],[117.234076, 40.417162],[117.240675, 40.394424],[117.228502, 40.386389],[117.226195, 40.369021],[117.242277, 40.369993],[117.260217, 40.335762],[117.275018, 40.33239],[117.274377, 40.308521],[117.293342, 40.296713],[117.296354, 40.278088],[117.331465, 40.28977],[117.339859, 40.246213],[117.350943, 40.229978],[117.386375, 40.22712],[117.415335, 40.236862],[117.419115, 40.249785],[117.450062, 40.252512],[117.484084, 40.235304],[117.514326, 40.227705],[117.54617, 40.232901],[117.571671, 40.219261],[117.56238, 40.206073],[117.575451, 40.192817],[117.609409, 40.194897],[117.619532, 40.206398],[117.64625, 40.205163],[117.677069, 40.22095],[117.694112, 40.238161],[117.714551, 40.241668],[117.75152, 40.229718],[117.807775, 40.261926],[117.844104, 40.261406],[117.867554, 40.26965],[117.897989, 40.270429],[117.909457, 40.285876],[118.000888, 40.29256],[118.031643, 40.302358],[118.061564, 40.319095],[118.079312, 40.353528],[118.121856, 40.354695],[118.133837, 40.375113],[118.165232, 40.400449],[118.153123, 40.409519],[118.156967, 40.423768],[118.173818, 40.423056],[118.239684, 40.464686],[118.262942, 40.452063],[118.277935, 40.425711],[118.306575, 40.419558],[118.356295, 40.435295],[118.360011, 40.428819],[118.387305, 40.436719],[118.402683, 40.416838],[118.430746, 40.411851],[118.45599, 40.414053],[118.503211, 40.403365],[118.523458, 40.40628],[118.548062, 40.422667],[118.571512, 40.414636],[118.550881, 40.385482],[118.558377, 40.36928],[118.539989, 40.361048],[118.532364, 40.319419],[118.533325, 40.298854],[118.568949, 40.287564],[118.580098, 40.305861],[118.596949, 40.308456],[118.608225, 40.328305],[118.640197, 40.354566],[118.643785, 40.380946],[118.618349, 40.425193],[118.624179, 40.437626],[118.657176, 40.450574],[118.702795, 40.491411],[118.723491, 40.473746],[118.772954, 40.479765],[118.792112, 40.492382],[118.794867, 40.510753],[118.821328, 40.531964],[118.864, 40.527244],[118.886938, 40.542438],[118.919038, 40.53093],[118.966003, 40.536102],[118.952676, 40.558469],[118.983366, 40.56364],[118.998359, 40.578955],[119.013095, 40.577081],[119.063392, 40.606151],[119.086394, 40.588775],[119.105487, 40.603632],[119.158474, 40.614418]]]]}},{"type": "Feature","properties": {"adcode": 131000,"name": "廊坊市","center": [116.704441, 39.523927],"centroid": [116.540212, 39.111215],"childrenNum": 10,"level": "city","parent": {"adcode": 130000},"subFeatureIndex": 9,"acroutes": [100000, 130000]},"geometry": {"type": "MultiPolygon","coordinates": [[[[116.244678, 39.517354],[116.222766, 39.501995],[116.220843, 39.511644],[116.182144, 39.49635],[116.179901, 39.486568],[116.151325, 39.471005],[116.132104, 39.429423],[116.133001, 39.4055],[116.116791, 39.376243],[116.13582, 39.351842],[116.198226, 39.351315],[116.208734, 39.330195],[116.201109, 39.251911],[116.186116, 39.222457],[116.206555, 39.207429],[116.207837, 39.168526],[116.221804, 39.147813],[116.262426, 39.138114],[116.263131, 39.127292],[116.28184, 39.107623],[116.305354, 39.098116],[116.317592, 39.077911],[116.318617, 39.037416],[116.307148, 39.032196],[116.293757, 39.007344],[116.299588, 38.993658],[116.3215, 38.998088],[116.33534, 38.984004],[116.316182, 38.962708],[116.298755, 38.975076],[116.291386, 38.948683],[116.253007, 38.932074],[116.243653, 38.949345],[116.228083, 38.942199],[116.230262, 38.92453],[116.209503, 38.921618],[116.20002, 38.915727],[116.202198, 38.887258],[116.212194, 38.870238],[116.23212, 38.871894],[116.248907, 38.85964],[116.247497, 38.848907],[116.278764, 38.836451],[116.271973, 38.816634],[116.338287, 38.80689],[116.390313, 38.789784],[116.42299, 38.770419],[116.435804, 38.733199],[116.406331, 38.703596],[116.370836, 38.692508],[116.366863, 38.67305],[116.381984, 38.619165],[116.41921, 38.599288],[116.425425, 38.587187],[116.454834, 38.580337],[116.455475, 38.557656],[116.432152, 38.552533],[116.431127, 38.539558],[116.452655, 38.534501],[116.449772, 38.518262],[116.465726, 38.494096],[116.519482, 38.48817],[116.559399, 38.496759],[116.569715, 38.470988],[116.589897, 38.483908],[116.610593, 38.479646],[116.627315, 38.501087],[116.621228, 38.514335],[116.647114, 38.50648],[116.668257, 38.530042],[116.672678, 38.546545],[116.652431, 38.551202],[116.643333, 38.564773],[116.671653, 38.566503],[116.662234, 38.581268],[116.680303, 38.592706],[116.680559, 38.605936],[116.702792, 38.619098],[116.71503, 38.609327],[116.733739, 38.614047],[116.738224, 38.631327],[116.763212, 38.633853],[116.77404, 38.652258],[116.758855, 38.732071],[116.766351, 38.741959],[116.746297, 38.754233],[116.751294, 38.780168],[116.737327, 38.784479],[116.73848, 38.807022],[116.75123, 38.831282],[116.74604, 38.851491],[116.723103, 38.852551],[116.722334, 38.897058],[116.708046, 38.897058],[116.70811, 38.931876],[116.716183, 38.93889],[116.728613, 38.975341],[116.754626, 39.003245],[116.756612, 39.0503],[116.773015, 39.046865],[116.787303, 39.061927],[116.80268, 39.050895],[116.860473, 39.050564],[116.869891, 39.069919],[116.881488, 39.071702],[116.91109, 39.111055],[116.924096, 39.119372],[116.909232, 39.150782],[116.870084, 39.153685],[116.863164, 39.201365],[116.855796, 39.215669],[116.875594, 39.21646],[116.874569, 39.230036],[116.892637, 39.223973],[116.878733, 39.255336],[116.867969, 39.302552],[116.884243, 39.305383],[116.889626, 39.338157],[116.875786, 39.33921],[116.870724, 39.357499],[116.849196, 39.339473],[116.829206, 39.338881],[116.818121, 39.373547],[116.837599, 39.374073],[116.834139, 39.402674],[116.875914, 39.434548],[116.855475, 39.443352],[116.832473, 39.435468],[116.815751, 39.451761],[116.807421, 39.445586],[116.785124, 39.465883],[116.820748, 39.482431],[116.813957, 39.510266],[116.826194, 39.513088],[116.819595, 39.52851],[116.806204, 39.528838],[116.787687, 39.554555],[116.81165, 39.576983],[116.797875, 39.594358],[116.812355, 39.615922],[116.789994, 39.610548],[116.790699, 39.596062],[116.748667, 39.619919],[116.700742, 39.621033],[116.7026, 39.610417],[116.727075, 39.593047],[116.705099, 39.587999],[116.662363, 39.605239],[116.646537, 39.599143],[116.620524, 39.601699],[116.607773, 39.619723],[116.565934, 39.619788],[116.566575, 39.604387],[116.541779, 39.593505],[116.524416, 39.596521],[116.519354, 39.566491],[116.508462, 39.551078],[116.470916, 39.55462],[116.478861, 39.539204],[116.464573, 39.527657],[116.437534, 39.526541],[116.443813, 39.509872],[116.424656, 39.509741],[116.424079, 39.522735],[116.402679, 39.526869],[116.402807, 39.5144],[116.418761, 39.506393],[116.412354, 39.482103],[116.444134, 39.482169],[116.454706, 39.453338],[116.434395, 39.442761],[116.408958, 39.45025],[116.350461, 39.453009],[116.320027, 39.46851],[116.306443, 39.488997],[116.279277, 39.491295],[116.257941, 39.500551],[116.244678, 39.517354]]],[[[117.209793, 40.082253],[117.204347, 40.06982],[117.160073, 40.076199],[117.13925, 40.064025],[117.119515, 40.072424],[117.085621, 40.075158],[117.085173, 40.068583],[117.052048, 40.059402],[117.028533, 40.033939],[117.000662, 40.0299],[116.972086, 40.037],[116.960489, 40.051133],[116.928133, 40.05491],[116.867841, 40.041885],[116.857782, 40.051914],[116.822734, 40.046444],[116.819979, 40.028337],[116.781536, 40.034851],[116.770452, 40.011658],[116.775385, 39.99276],[116.757317, 39.961468],[116.780575, 39.94973],[116.784676, 39.891401],[116.804154, 39.877954],[116.827284, 39.87704],[116.866047, 39.843866],[116.885653, 39.844585],[116.907566, 39.834133],[116.902824, 39.848242],[116.92589, 39.835374],[116.928453, 39.813095],[116.952608, 39.789827],[116.949725, 39.778583],[116.924288, 39.781263],[116.920893, 39.769167],[116.901799, 39.763609],[116.916664, 39.731362],[116.88277, 39.718472],[116.893854, 39.695893],[116.912563, 39.689216],[116.91692, 39.706365],[116.950878, 39.706824],[116.944599, 39.695173],[116.963629, 39.643441],[116.974585, 39.636824],[117.004378, 39.644489],[117.015783, 39.654052],[117.057045, 39.644554],[117.127076, 39.61697],[117.152641, 39.623523],[117.157959, 39.636627],[117.177693, 39.645602],[117.159624, 39.666823],[117.170132, 39.673371],[117.169235, 39.717622],[117.153153, 39.722726],[117.161867, 39.747389],[117.205884, 39.763871],[117.18064, 39.78244],[117.178718, 39.795318],[117.15751, 39.796756],[117.156357, 39.817473],[117.195056, 39.82551],[117.192173, 39.833088],[117.252208, 39.834591],[117.259961, 39.843409],[117.247467, 39.861043],[117.227797, 39.852749],[117.166865, 39.868944],[117.149117, 39.896297],[117.158856, 39.909218],[117.137456, 39.921616],[117.156869, 39.938055],[117.151039, 39.944839],[117.175963, 39.959121],[117.178654, 39.977311],[117.198132, 39.99276],[117.187752, 40.026187],[117.1841, 40.062593],[117.222863, 40.065523],[117.209793, 40.082253]]]]}}]
}

最后使用echart进行加载:

代码如下:

<template><div id="main" style="width: 100%; height: 100%"></div>
</template><script>import echarts from 'echarts';// import 'echarts/map/js/province/jiangsu'import 'echarts/map/js/province/ningxia'
export default {name: 'HelloWorld',mounted(){this.drawLine();},methods: {drawLine(){const jbJson = require('../assets/jb.json')echarts.registerMap('jb', jbJson);let myChart = echarts.init(document.getElementById('main'));myChart.setOption({scaleLimit: { //所属组件的z分层,z值小的图形会被z值大的图形覆盖min: 1.2, //最小的缩放值max: 1.2, //最大的缩放值,},visualMap: {left: 'left',min: 500000,max: 3800000,inRange: {color: ['#313695', '#4575b4', '#74add1', '#abd9e9', '#e0f3f8', '#ffffbf', '#fee090', '#fdae61', '#f46d43', '#d73027', '#a50026']},text:['High','Low'],calculable: true,show: false},tooltip: {trigger: 'item',formatter: '{b}<br/>{c}'},series: [{type: 'map',map: 'jb',label: {normal: {show: true, // 显示标签formatter: function(params){let str = params.name;let value = params.value + "KW";return '{a|' + str + '}\n{b|' + value + '}';},rich: {a: {color: 'rgb(183, 239, 255)',fontSize: 14},b: {color: 'rgb(171, 255, 155)',fontSize: 14,fontWeight: 'bold'}}}},itemStyle:{emphasis:{label:{show:true}}},// 文本位置修正textFixed: {Alaska: [20, -20]},data:[{name: '张家口市', value: 917092},{name: '承德市', value: 917092},{name: '秦皇岛市', value: 917092},{name: '唐山市', value: 917092},{name: '廊坊市', value: 917092}],}]});window.addEventListener("resize", () => {myChart.resize();});}}
}
</script><style>/*html, body{*//*  margin 0*//*  padding 0*//*  width 100%*//*  height 100%*//*}*/
</style>

效果如下:

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/209371.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Python练习题(四)

本文主要是【Python】——Python练习题的文章&#xff0c;如果有什么需要改进的地方还请大佬指出⛺️ &#x1f3ac;作者简介&#xff1a;大家好&#xff0c;我是听风与他&#x1f947; ☁️博客首页&#xff1a;CSDN主页听风与他 &#x1f304;每日一句&#xff1a;狠狠沉淀&a…

ssm医院门诊互联电子病历管理信息系统源码和论文

摘 要 网络的广泛应用给生活带来了十分的便利。所以把医院门诊互联电子病历管理与现在网络相结合&#xff0c;利用java技术建设医院门诊互联电子病历管理信息系统&#xff0c;实现医院门诊互联电子病历的信息化。则对于进一步提高医院门诊互联电子病历管理发展&#xff0c;对…

最强Node js 后端框架学习看这一篇文章就够

距离上次认真花时间写作&#xff0c;似乎已经过了许久许久&#xff0c;前端讲了一个新框架 &#xff0c;叫 Nest.js 下方是课件&#xff0c;有过一定开发经验可跟随视频学习 B站 地址 &#xff1a; https://www.bilibili.com/video/BV1Lg4y197u1/?vd_sourcead427ffaf8a5c8344…

leetcode 202.快乐数

代码&#xff1a; class Solution {//计算 n 每个位置上的数字的平方和public int quadraticSum(int n){int sum0;while (n>0){int in%10;sumi*i;n/10;}return sum;}public boolean isHappy(int n) {//慢指针int slown;//快指针int fastquadraticSum(n);while (slow!fast){…

【EasyExcel实践】万能导出,一个接口导出多张表以及任意字段(可指定字段顺序)

文章目录 前言正文一、POM依赖二、核心Java文件2.1 自定义表头注解 ExcelColumnTitle2.2 自定义标题头的映射接口2.3 自定义有序map存储表内数据2.4 表头工厂2.5 表flag和表头映射枚举2.6 测试用的实体2.6.1 NameAndFactoryDemo2.6.2 StudentDemo 2.7 启动类2.8 测试控制器 三、…

linux作业管理_jobs

4.2 作业管理 是指控制当前正在运行的进程的行为&#xff0c;也称为进程控制。 是shell的一个特性&#xff0c;使用户能在多个独立进程间进行切换。 例如&#xff0c;用户可以挂起一个正在运行的进程&#xff0c;稍后再恢复其运行。当用户使用vim编辑一个文本文件&#xff0c…

PCL 空间直角坐标系与极坐标系的相互转换(C++详细过程版)

目录 一、算法原理1、空间坐标系转极坐标系2、极坐标系转空间坐标系二、代码实现三、结果展示1、空间坐标系转极坐标系2、极坐标系转空间坐标系本文由CSDN点云侠原创,原文链接。爬虫网站自重。如果你不是在点云侠的博客中看到该文章,那么此处便是不

【算法】单调栈题单(矩阵系列、字典序最小、贡献法)⭐

文章目录 题单来源经典题单496. 下一个更大元素 I&#xff08;单调栈模板题&#xff09;503. 下一个更大元素 II&#xff08;单调栈循环数组&#xff09;2454. 下一个更大元素 IV&#xff08;第二个更大的元素&#xff1a;两个单调栈&#xff09;456. 132 模式&#xff08;单调…

C++ day44完全背包问题 零钱兑换Ⅱ 组合总和Ⅳ

完全背包&#xff1a;一个物品可以使用无数次&#xff0c;将01背包中倒序遍历背包变成正序遍历背包 遍历顺序&#xff1a;在完全背包中&#xff0c;对于一维dp数组来说&#xff0c;其实两个for循环嵌套顺序是无所谓的&#xff01; 先遍历物品&#xff0c;后遍历背包可以&#…

idea报错——Access denied for user ‘root‘@‘localhost‘ (using password: YES)

项目场景&#xff1a; 使用idea启动SpringBoot项目报错&#xff0c;可以根据提示看到是数据库的原因&#xff0c;显示使用了密码&#xff0c;具体报错信息如下&#xff1a; 解决方案&#xff1a; 第一步&#xff1a;先去配置文件里面查看连接MySQL的url是否正确&#xff0c;如果…

【蓝桥杯选拔赛真题73】Scratch烟花特效 少儿编程scratch图形化编程 蓝桥杯创意编程选拔赛真题解析

目录 scratch烟花特效 一、题目要求 编程实现 二、案例分析 1、角色分析

JDK1.8_X64在LINUX下安装

JDK1.8在LINUX下安装步骤&#xff1a; 在/usr/lib/目录下新建jvm文件夹&#xff0c;如果已有jvm文件夹&#xff0c;则将之前的JDK版本删除&#xff0c;即在jvm目录下执行命令&#xff1a;rm–rf *将JDK文件jdk-8u40-linux-x64.gz拷贝到/home/目录下&#xff1b;在/home/目录下…

华天动力-OA8000 MyHttpServlet 文件上传漏洞复现

0x01 产品简介 华天动力OA是一款将先进的管理思想、 管理模式和软件技术、网络技术相结合,为用户提供了低成本、 高效能的协同办公和管理平台。 0x02 漏洞概述 华天动力OA MyHttpServlet 存在任意文件上传漏洞,未经身份认证的攻击者可上传恶意的raq文件并执行raq文件中的任意…

PC行内编辑

点击编辑&#xff0c;行内编辑输入框出现&#xff0c;给列表的每条数据定义编辑标记&#xff0c;最后一定记得 v-model双向绑定&#xff0c;使数据回显。 步骤&#xff1a; 1、给行数据定义编辑标记 2、点击行编辑标记&#xff08;isedit&#xff09; 3、插槽根据标记渲染表单 …

数据结构:图文详解双向链表的各种操作(头插法,尾插法,任意位置插入,查询节点,删除节点,求链表的长度... ...)

目录 一.双向链表的概念 二.双向链表的数据结构 三.双向链表的实现 节点的插入 头插法 尾插法 任意位置插入 节点的删除 删除链表中第一次出现的目标节点 删除链表中所有与关键字相同的节点 节点的查找 链表的清空 链表的长度 四.模拟实现链表的完整代码 前言&am…

“此应用专为旧版android打造,因此可能无法运行”,问题解决方案

当用户在Android P系统上打开某些应用程序时&#xff0c;可能会弹出一个对话框&#xff0c;提示内容为&#xff1a;“此应用专为旧版Android打造&#xff0c;可能无法正常运行。请尝试检查更新或与开发者联系”。 随着Android平台的发展&#xff0c;每个新版本通常都会引入新的…

线程池大小设置多少,比较合适?

设置线程数的核心点 压测&#xff01;压测&#xff01;再压测&#xff01;实际对性能要求比较高的场景&#xff0c;压测是最佳的方式&#xff01; 并发编程适用于什么场景&#xff1f; CPU 密集型 对于 CPU 密集型任务&#xff0c;希望最大限度地提高 CPU 利用率&#xff0c…

每周一算法:背包问题(三)多重背包

多重背包 有 N N N件物品和一个容量是 M M M的背包。第 i i i种物品最多有 s i s_i si​件&#xff0c;每件的体积是 v i v_i vi​&#xff0c;价值是 w i w_i wi​。 求解将哪些物品装入背包&#xff0c;可使这些物品的总体积不超过背包容量&#xff0c;且总价值最大。 输…

pytorch 模型量化quantization

pytorch 模型量化quantization 1.workflow1.1 PTQ1.2 QAT 2. demo2.1 构建resnet101_quantization模型2.2 PTQ2.3 QAT 参考文献 pytorch框架提供了三种量化方法&#xff0c;包括&#xff1a; Dynamic QuantizationPost-Training Static Quantization&#xff08;PTQ&#xff0…

DevOps搭建(三)-Git安装详细步骤

前面两篇文章我们讲了如何安装swappiness安装和虚拟机。这篇我们详细讲下如何安装Git。 1、YUM源更改为阿里云镜像源 1.1、备份CentOS-Base.repo 先备份原有的 CentOS-Base.repo 文件 sudo mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup…