map3d渲染geojson数据时,一个区域含多个子区域时,地图名称显示无法确定在哪一个子区域上
Version
5.4.2
Link to Minimal Reproduction
https://echarts.apache.org/examples/zh/editor.html?c=map3d-wood-city&gl=1
Steps to Reproduce
$.getJSON( ROOT_PATH + '/data-gl/asset/data/buildings.json', function () { var mapJson = { "features": [ { "type": "Feature", "properties": { "zindex": "", "areaId": "7139928011188531200", "color": [25, 229, 192], "fillOpacity": 0.5, "name": "靖安县工业园区", "weight": 2, "id": "7145294250249351168", "opacity": 1.0, "fill": "#ffffff", "surfacePhoto": "", "desc": "" }, "geometry": { "center": ["", ""], "coordinates": [ [ [ [115.377481, 28.812545], [115.375722, 28.810666], [115.375389, 28.809815], [115.374672, 28.809367], [115.374147, 28.808747], [115.373496, 28.808412], [115.373109, 28.808359], [115.372926, 28.809214], [115.372221, 28.809676], [115.371713, 28.810364], [115.371137, 28.810769], [115.37062, 28.810717], [115.370487, 28.810491], [115.370549, 28.81032], [115.370544, 28.809864], [115.370411, 28.809638], [115.370155, 28.809755], [115.369766, 28.809701], [115.36957, 28.809533], [115.368601, 28.809486], [115.368539, 28.809714], [115.368151, 28.809717], [115.367186, 28.810012], [115.366545, 28.81036], [115.36603, 28.810536], [115.364815, 28.811573], [115.364498, 28.811974], [115.364196, 28.812138], [115.363718, 28.812653], [115.363348, 28.812865], [115.362673, 28.813753], [115.362058, 28.814795], [115.361517, 28.815474], [115.361098, 28.81636], [115.360407, 28.817542], [115.360745, 28.817867], [115.36233, 28.819044], [115.363534, 28.819635], [115.365592, 28.821015], [115.366667, 28.819748], [115.36699, 28.819745], [115.367449, 28.820309], [115.367644, 28.820364], [115.3679, 28.820134], [115.369391, 28.820517], [115.369651, 28.820685], [115.37043, 28.820961], [115.371217, 28.821808], [115.371666, 28.821632], [115.371926, 28.821686], [115.372543, 28.821985], [115.373422, 28.822411], [115.374994, 28.824045], [115.37539, 28.82461], [115.375836, 28.824207], [115.376286, 28.824088], [115.378464, 28.822587], [115.376955, 28.820838], [115.376952, 28.82061], [115.377721, 28.820148], [115.377326, 28.819583], [115.376939, 28.819643], [115.37655, 28.819476], [115.376032, 28.819425], [115.376299, 28.820048], [115.376374, 28.820902], [115.376313, 28.821129], [115.374164, 28.8199], [115.374417, 28.819442], [115.37396, 28.819104], [115.375926, 28.816296], [115.377284, 28.816396], [115.378834, 28.816323], [115.379095, 28.816492], [115.380301, 28.814886], [115.379316, 28.813701], [115.379376, 28.813302], [115.378147, 28.813258], [115.377481, 28.812545] ] ], [ [ [115.379426, 28.867116], [115.379106, 28.861883], [115.378492, 28.861931], [115.378429, 28.861861], [115.378436, 28.861657], [115.379021, 28.861503], [115.378965, 28.861346], [115.378708, 28.861372], [115.376654, 28.861079], [115.376282, 28.860636], [115.375666, 28.861144], [115.374764, 28.860307], [115.374447, 28.859886], [115.373474, 28.859003], [115.373131, 28.858552], [115.373041, 28.858566], [115.372855, 28.858617], [115.372573, 28.858879], [115.371666, 28.860315], [115.369996, 28.861876], [115.375075, 28.867798], [115.37562, 28.869321], [115.37525, 28.870801], [115.374775, 28.8727], [115.374943, 28.87462], [115.374792, 28.875334], [115.375983, 28.876459], [115.375939, 28.876608], [115.375222, 28.877572], [115.37807, 28.881005], [115.378063, 28.879291], [115.37948, 28.875389], [115.379065, 28.875273], [115.378661, 28.874676], [115.378631, 28.873822], [115.37977, 28.873755], [115.379555, 28.869579], [115.378486, 28.86959], [115.378453, 28.86843], [115.379504, 28.868396], [115.379426, 28.867116] ] ] ], "type": "MultiPolygon" } },
{
"type": "Feature",
"properties": {
"zindex": "",
"areaId": "7139928022253105152",
"color": [69, 232, 173],
"fillOpacity": 0.5,
"name": "雷公尖乡",
"weight": 2,
"id": "7145288659510554624",
"opacity": 1.0,
"fill": "#ffffff",
"surfacePhoto": "",
"desc": ""
},
"geometry": {
"center": ["", ""],
"coordinates": [
[
[
[115.360229, 28.93476],
[115.361375, 28.932261],
[115.362678, 28.929828],
[115.363205, 28.928026],
[115.363666, 28.927262],
[115.364648, 28.92428],
[115.364565, 28.923866],
[115.364163, 28.923248],
[115.363834, 28.922077],
[115.363288, 28.922358],
[115.362892, 28.922155],
[115.362811, 28.922018],
[115.362655, 28.922019],
[115.362422, 28.922229],
[115.36211, 28.922371],
[115.361871, 28.922166],
[115.361867, 28.92182],
[115.363327, 28.919318],
[115.363164, 28.918904],
[115.363781, 28.918069],
[115.364955, 28.917781],
[115.365189, 28.91757],
[115.364472, 28.916818],
[115.364076, 28.916545],
[115.363604, 28.916482],
[115.363555, 28.916378],
[115.363409, 28.916635],
[115.363273, 28.916705],
[115.362762, 28.916676],
[115.361027, 28.916141],
[115.360907, 28.916003],
[115.36009, 28.91653],
[115.359663, 28.917018],
[115.359273, 28.917228],
[115.358998, 28.917266],
[115.358602, 28.91696],
[115.35836, 28.916409],
[115.358081, 28.916135],
[115.357101, 28.916249],
[115.355991, 28.915465],
[115.354912, 28.914059],
[115.354754, 28.914061],
[115.354635, 28.913958],
[115.354241, 28.913859],
[115.353724, 28.913311],
[115.352851, 28.912628],
[115.352257, 28.912289],
[115.352055, 28.911772],
[115.351895, 28.911567],
[115.35146, 28.911295],
[115.350267, 28.910236],
[115.349866, 28.909583],
[115.349191, 28.909071],
[115.348442, 28.908768],
[115.348322, 28.908596],
[115.347212, 28.907744],
[115.346618, 28.907404],
[115.346068, 28.907375],
[115.345988, 28.907306],
[115.345125, 28.90735],
[115.342529, 28.906485],
[115.3414, 28.906308],
[115.340618, 28.905889],
[115.340392, 28.905863],
[115.340167, 28.906036],
[115.339476, 28.907551],
[115.336143, 28.907446],
[115.336043, 28.907606],
[115.335363, 28.908691],
[115.334893, 28.908834],
[115.334042, 28.909809],
[115.331856, 28.910799],
[115.331384, 28.910804],
[115.330917, 28.911084],
[115.330375, 28.911712],
[115.329902, 28.911578],
[115.328959, 28.911588],
[115.328412, 28.911732],
[115.327787, 28.912014],
[115.327493, 28.912279],
[115.327831, 28.912238],
[115.32784, 28.912929],
[115.329262, 28.913607],
[115.331325, 28.915245],
[115.331975, 28.916897],
[115.331679, 28.918281],
[115.330593, 28.919399],
[115.330596, 28.919675],
[115.331082, 28.920776],
[115.330325, 28.922995],
[115.330048, 28.925901],
[115.330376, 28.927003],
[115.329605, 28.928117],
[115.329619, 28.929222],
[115.329008, 28.93061],
[115.329024, 28.931854],
[115.330134, 28.932672],
[115.331564, 28.933902],
[115.333296, 28.934162],
[115.333076, 28.934973],
[115.333592, 28.935229],
[115.334064, 28.935294],
[115.33454, 28.935635],
[115.335634, 28.93514],
[115.335869, 28.935138],
[115.336901, 28.935957],
[115.337217, 28.936092],
[115.337931, 28.936638],
[115.339275, 28.937247],
[115.34015, 28.938068],
[115.341021, 28.938681],
[115.342285, 28.939221],
[115.341671, 28.940263],
[115.340571, 28.940274],
[115.340107, 28.940833],
[115.339884, 28.941871],
[115.339889, 28.942216],
[115.340444, 28.942626],
[115.340538, 28.943799],
[115.341819, 28.945653],
[115.342297, 28.946131],
[115.342613, 28.946336],
[115.342934, 28.946817],
[115.343022, 28.947576],
[115.34295, 28.94813],
[115.343188, 28.948266],
[115.343428, 28.948608],
[115.343901, 28.948742],
[115.343978, 28.948603],
[115.343954, 28.946737],
[115.343872, 28.94653],
[115.344106, 28.946321],
[115.344025, 28.946114],
[115.344009, 28.94494],
[115.344315, 28.944246],
[115.344627, 28.944105],
[115.345266, 28.944858],
[115.345276, 28.945687],
[115.345748, 28.945682],
[115.345982, 28.945542],
[115.345894, 28.944852],
[115.346047, 28.944505],
[115.346676, 28.944568],
[115.346778, 28.946364],
[115.346324, 28.947751],
[115.345861, 28.948377],
[115.34579, 28.949],
[115.346263, 28.949134],
[115.346889, 28.948851],
[115.347203, 28.948847],
[115.34705, 28.949194],
[115.347756, 28.949118],
[115.350091, 28.947436],
[115.352051, 28.947001],
[115.353144, 28.946507],
[115.353851, 28.9465],
[115.354554, 28.946217],
[115.355496, 28.946138],
[115.356057, 28.946962],
[115.356853, 28.947714],
[115.358118, 28.948392],
[115.358676, 28.949008],
[115.360879, 28.949194],
[115.360875, 28.948848],
[115.361581, 28.948772],
[115.362057, 28.949182],
[115.363576, 28.949432],
[115.364108, 28.949783],
[115.367347, 28.951063],
[115.367818, 28.951058],
[115.368209, 28.950847],
[115.36946, 28.95042],
[115.370168, 28.950482],
[115.371116, 28.950886],
[115.371823, 28.950811],
[115.36863, 28.947042],
[115.369568, 28.946687],
[115.369722, 28.946409],
[115.370427, 28.946263],
[115.371909, 28.945488],
[115.373871, 28.94533],
[115.374106, 28.945189],
[115.376461, 28.945096],
[115.376931, 28.944953],
[115.378265, 28.94487],
[115.378974, 28.945001],
[115.380231, 28.944988],
[115.382193, 28.94483],
[115.383684, 28.944607],
[115.384155, 28.944602],
[115.38572, 28.944172],
[115.386583, 28.944024],
[115.388536, 28.943245],
[115.389792, 28.943093],
[115.391058, 28.940834],
[115.391153, 28.940511],
[115.389888, 28.93895],
[115.389723, 28.938399],
[115.389717, 28.937915],
[115.389158, 28.937299],
[115.388435, 28.936062],
[115.388272, 28.935649],
[115.388112, 28.935443],
[115.386847, 28.934834],
[115.386209, 28.934081],
[115.386191, 28.932768],
[115.385717, 28.932566],
[115.385251, 28.932916],
[115.384151, 28.932927],
[115.383997, 28.933136],
[115.384157, 28.93341],
[115.383691, 28.933761],
[115.383376, 28.933765],
[115.382676, 28.934255],
[115.382994, 28.934597],
[115.382624, 28.935016],
[115.38231, 28.935088],
[115.381998, 28.935299],
[115.381606, 28.935303],
[115.380979, 28.935448],
[115.38051, 28.93566],
[115.378545, 28.93561],
[115.378311, 28.935683],
[115.377604, 28.935689],
[115.3769, 28.935904],
[115.376507, 28.935908],
[115.376041, 28.936258],
[115.374395, 28.93669],
[115.373229, 28.937532],
[115.371194, 28.938243],
[115.370806, 28.938524],
[115.369473, 28.938675],
[115.368772, 28.939167],
[115.368457, 28.939169],
[115.368062, 28.938966],
[115.368054, 28.938344],
[115.367254, 28.937315],
[115.366938, 28.937112],
[115.366776, 28.936767],
[115.366462, 28.93677],
[115.366145, 28.936566],
[115.365667, 28.936018],
[115.365024, 28.934919],
[115.364787, 28.934921],
[115.364712, 28.935129],
[115.364164, 28.935274],
[115.363771, 28.935277],
[115.363537, 28.935418],
[115.363144, 28.935352],
[115.362747, 28.93515],
[115.361572, 28.9353],
[115.361255, 28.935095],
[115.360229, 28.93476]
]
],
[
[
[115.371589, 28.859872],
[115.371211, 28.860016],
[115.371267, 28.860078],
[115.368535, 28.862687],
[115.367856, 28.86343],
[115.367396, 28.864264],
[115.366696, 28.864755],
[115.3667, 28.865077],
[115.368048, 28.866055],
[115.368993, 28.866321],
[115.368985, 28.86563],
[115.369214, 28.865213],
[115.369604, 28.865001],
[115.369996, 28.864998],
[115.370151, 28.864789],
[115.370384, 28.864649],
[115.370388, 28.864855],
[115.369927, 28.865689],
[115.370641, 28.866235],
[115.370649, 28.866857],
[115.371043, 28.866922],
[115.371046, 28.867268],
[115.371362, 28.867333],
[115.372232, 28.867809],
[115.37373, 28.868277],
[115.373885, 28.868207],
[115.37396, 28.86786],
[115.374274, 28.867857],
[115.374674, 28.868406],
[115.37461, 28.869512],
[115.373763, 28.870765],
[115.373449, 28.870837],
[115.373288, 28.870494],
[115.373209, 28.870494],
[115.372733, 28.870085],
[115.371241, 28.870099],
[115.371085, 28.87017],
[115.370693, 28.870174],
[115.370224, 28.870386],
[115.368579, 28.87061],
[115.367876, 28.870894],
[115.367801, 28.871171],
[115.367895, 28.872414],
[115.367664, 28.872693],
[115.366878, 28.872701],
[115.366326, 28.872499],
[115.366179, 28.87326],
[115.365717, 28.873957],
[115.364632, 28.875004],
[115.365739, 28.875545],
[115.365621, 28.878657],
[115.365722, 28.880384],
[115.365892, 28.88135],
[115.366291, 28.88183],
[115.366298, 28.882382],
[115.365906, 28.882386],
[115.364734, 28.882813],
[115.363723, 28.883583],
[115.363421, 28.884485],
[115.363903, 28.885309],
[115.363665, 28.885173],
[115.364063, 28.885584],
[115.36423, 28.886342],
[115.364787, 28.88689],
[115.365097, 28.886541],
[115.365642, 28.88619],
[115.367357, 28.885274],
[115.368603, 28.884432],
[115.369688, 28.883384],
[115.37037, 28.882439],
[115.370613, 28.882062],
[115.371005, 28.882058],
[115.371955, 28.882601],
[115.37136, 28.885096],
[115.370529, 28.887592],
[115.369465, 28.890298],
[115.368234, 28.892176],
[115.368237, 28.892522],
[115.368478, 28.892865],
[115.368643, 28.893486],
[115.368492, 28.893902],
[115.36854, 28.894064],
[115.368574, 28.894177],
[115.36976, 28.894787],
[115.371417, 28.895392],
[115.371656, 28.895735],
[115.373227, 28.895719],
[115.373546, 28.896062],
[115.373711, 28.896613],
[115.374427, 28.897435],
[115.37483, 28.898191],
[115.37492, 28.899019],
[115.376334, 28.899074],
[115.376885, 28.899207],
[115.377278, 28.899202],
[115.377663, 28.899806],
[115.378751, 28.900721],
[115.379212, 28.901373],
[115.379784, 28.901591],
[115.380161, 28.901847],
[115.383565, 28.901899],
[115.384566, 28.901802],
[115.383891, 28.901273],
[115.383081, 28.90085],
[115.38292, 28.900626],
[115.382624, 28.90044],
[115.382463, 28.900199],
[115.381834, 28.900136],
[115.381517, 28.899863],
[115.380911, 28.898694],
[115.380904, 28.898073],
[115.381038, 28.897847],
[115.381445, 28.897394],
[115.381951, 28.897147],
[115.383772, 28.896679],
[115.384258, 28.896362],
[115.384373, 28.896223],
[115.384371, 28.896051],
[115.384231, 28.89581],
[115.384241, 28.895118],
[115.384354, 28.894772],
[115.384565, 28.89439],
[115.385188, 28.893986],
[115.386145, 28.893578],
[115.386557, 28.893523],
[115.387768, 28.893096],
[115.38809, 28.893074],
[115.388683, 28.893345],
[115.389233, 28.89346],
[115.390673, 28.892478],
[115.390632, 28.892306],
[115.390473, 28.892135],
[115.38972, 28.891624],
[115.389285, 28.891421],
[115.388833, 28.891408],
[115.387982, 28.890847],
[115.387569, 28.890835],
[115.387256, 28.890907],
[115.387158, 28.890856],
[115.387136, 28.890752],
[115.387468, 28.890576],
[115.387483, 28.890317],
[115.387107, 28.890009],
[115.38691, 28.88996],
[115.386946, 28.8897],
[115.387122, 28.889664],
[115.387699, 28.890263],
[115.388392, 28.890687],
[115.389676, 28.891313],
[115.390011, 28.891397],
[115.390129, 28.891361],
[115.390338, 28.890961],
[115.390554, 28.890959],
[115.390635, 28.891044],
[115.390699, 28.891493],
[115.390779, 28.891561],
[115.391352, 28.891832],
[115.392121, 28.892066],
[115.392571, 28.891992],
[115.392666, 28.891766],
[115.392791, 28.890832],
[115.39357, 28.89034],
[115.39384, 28.889957],
[115.393656, 28.889492],
[115.393571, 28.888958],
[115.392836, 28.888223],
[115.392887, 28.887635],
[115.393175, 28.8872],
[115.393016, 28.885888],
[115.392857, 28.885717],
[115.392541, 28.885634],
[115.391481, 28.88561],
[115.390749, 28.885134],
[115.390766, 28.884995],
[115.391992, 28.88424],
[115.393369, 28.882931],
[115.396303, 28.880671],
[115.39774, 28.880097],
[115.397518, 28.879034],
[115.397368, 28.878829],
[115.397285, 28.87851],
[115.397292, 28.878302],
[115.397369, 28.878172],
[115.39785, 28.87815],
[115.398064, 28.878035],
[115.398235, 28.877567],
[115.39821, 28.877239],
[115.396356, 28.875833],
[115.396254, 28.875574],
[115.396322, 28.874822],
[115.396182, 28.873139],
[115.396452, 28.872695],
[115.396235, 28.870426],
[115.3975, 28.869567],
[115.398418, 28.86852],
[115.397826, 28.867952],
[115.397264, 28.867374],
[115.397292, 28.867245],
[115.397581, 28.866862],
[115.398819, 28.86575],
[115.398652, 28.865573],
[115.398645, 28.865333],
[115.398919, 28.86483],
[115.398945, 28.864532],
[115.398838, 28.86424],
[115.398562, 28.863895],
[115.398397, 28.863551],
[115.398409, 28.863334],
[115.398566, 28.862974],
[115.398561, 28.862582],
[115.398373, 28.862302],
[115.397886, 28.862218],
[115.397685, 28.86208],
[115.397372, 28.861255],
[115.39666, 28.860263],
[115.395887, 28.859423],
[115.395553, 28.858833],
[115.395528, 28.858469],
[115.395593, 28.858243],
[115.396136, 28.857448],
[115.396287, 28.857019],
[115.396114, 28.855444],
[115.395909, 28.854502],
[115.395519, 28.853867],
[115.394849, 28.853448],
[115.394369, 28.853326],
[115.393412, 28.853359],
[115.39308, 28.853248],
[115.392792, 28.852932],
[115.392684, 28.852688],
[115.39262, 28.851999],
[115.39187, 28.851751],
[115.391454, 28.85153],
[115.390923, 28.851485],
[115.390389, 28.851092],
[115.390054, 28.850958],
[115.389958, 28.851148],
[115.389548, 28.851326],
[115.389254, 28.851364],
[115.388998, 28.85128],
[115.38878, 28.851126],
[115.388659, 28.850885],
[115.388689, 28.850194],
[115.387466, 28.849688],
[115.387146, 28.849277],
[115.387025, 28.849002],
[115.386788, 28.848935],
[115.386511, 28.84873],
[115.386034, 28.848286],
[115.385714, 28.847841],
[115.385242, 28.847776],
[115.385083, 28.84757],
[115.384848, 28.847573],
[115.384531, 28.847404],
[115.38414, 28.847546],
[115.381937, 28.847188],
[115.381506, 28.847192],
[115.380836, 28.846958],
[115.380565, 28.847236],
[115.379876, 28.848592],
[115.378904, 28.849292],
[115.378713, 28.849675],
[115.378611, 28.850954],
[115.378228, 28.85158],
[115.378042, 28.852411],
[115.378124, 28.852652],
[115.37813, 28.853101],
[115.37873, 28.853959],
[115.379085, 28.854024],
[115.380196, 28.854981],
[115.380087, 28.855638],
[115.379221, 28.856615],
[115.377894, 28.857181],
[115.377193, 28.857638],
[115.376486, 28.857645],
[115.376329, 28.857542],
[115.374759, 28.857662],
[115.373625, 28.85795],
[115.372865, 28.858281],
[115.372649, 28.858375],
[115.3723, 28.858724],
[115.371589, 28.859872],
[115.375222, 28.877572],
[115.375939, 28.876608],
[115.375983, 28.876459],
[115.374792, 28.875334],
[115.374943, 28.87462],
[115.374775, 28.8727],
[115.37525, 28.870801],
[115.37562, 28.869321],
[115.375075, 28.867798],
[115.369996, 28.861876],
[115.371666, 28.860315],
[115.372573, 28.858879],
[115.372855, 28.858617],
[115.373041, 28.858566],
[115.373131, 28.858552],
[115.373474, 28.859003],
[115.374447, 28.859886],
[115.374764, 28.860307],
[115.375666, 28.861144],
[115.376282, 28.860636],
[115.376654, 28.861079],
[115.378708, 28.861372],
[115.378965, 28.861346],
[115.379021, 28.861503],
[115.378436, 28.861657],
[115.378429, 28.861861],
[115.378492, 28.861931],
[115.379106, 28.861883],
[115.379426, 28.867116],
[115.379504, 28.868396],
[115.378453, 28.86843],
[115.378486, 28.86959],
[115.379555, 28.869579],
[115.37977, 28.873755],
[115.378631, 28.873822],
[115.378661, 28.874676],
[115.379065, 28.875273],
[115.37948, 28.875389],
[115.378063, 28.879291],
[115.37807, 28.881005],
[115.375222, 28.877572],
[115.371589, 28.859872]
]
]
],
"type": "MultiPolygon"
}
}
],
"type": "FeatureCollection",
"tenantCenter": {
"lng": "115.44865",
"lat": "28.90294"
}
}
echarts.registerMap('buildings', mapJson);
myChart.setOption({
series: [
{
type: 'map3D',
map: 'buildings',
shading: 'realistic',
label: {
show: true, //是否显示市
color: "red", //文字颜色
borderWidth: 2,
// shadowColor: "blue",
fontWeight: 700,
fontSize: 16, //文字大小
},
realisticMaterial: {
roughness: 0.6,
textureTiling: 20
},
postEffect: {
enable: true,
bloom: {
enable: false
},
SSAO: {
enable: true,
quality: 'medium',
radius: 10,
intensity: 1.2
},
depthOfField: {
enable: false,
focalRange: 5,
fstop: 1,
blurRadius: 6
}
},
groundPlane: {
show: true,
color: '#333'
},
light: {
main: {
intensity: 6,
shadow: true,
shadowQuality: 'high',
alpha: 30
},
},
viewControl: {
minBeta: -660,
maxBeta: 660
},
silent: true,
instancing: true,
boxWidth: 200,
boxHeight: 1,
}
]
});
} );
Current Behavior
地图数据是静安工业园区和雷公尖乡,这两个区域分别都包含了两个子区域。因为子区域之间并不接壤,区域名称只显示了一个,但显示在哪个子区域上并不固定
Expected Behavior
期望多个子区域都能显示区域名,或者区域名固定显示在第一个子区域上
Environment
- OS:windows
- Browser:Chrome 121.0.6167.139
- Framework:[email protected]
Any additional comments?
No response
@KingJardon It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED
TITLE
When map3d renders geojosn data, when an area contains multiple sub-areas, the map name display cannot determine which sub-area it is on.
the map name display cannot determine which sub-area it is on
I think the name goes to the first sub-area. And that is normal. It would be worse to have the name in the middle, completely disconnected from both areas. What one can do is separate the sub-areas geometries and name them individually.
Demo Code 📌
var mapJson = {
type: 'FeatureCollection',
features: [
{
type: 'Feature',
properties: {
name: '靖安县工业园区'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[115.377481, 28.812545],
[115.375722, 28.810666],
[115.375389, 28.809815],
[115.374672, 28.809367],
[115.374147, 28.808747],
[115.373496, 28.808412],
[115.373109, 28.808359],
[115.372926, 28.809214],
[115.372221, 28.809676],
[115.371713, 28.810364],
[115.371137, 28.810769],
[115.37062, 28.810717],
[115.370487, 28.810491],
[115.370549, 28.81032],
[115.370544, 28.809864],
[115.370411, 28.809638],
[115.370155, 28.809755],
[115.369766, 28.809701],
[115.36957, 28.809533],
[115.368601, 28.809486],
[115.368539, 28.809714],
[115.368151, 28.809717],
[115.367186, 28.810012],
[115.366545, 28.81036],
[115.36603, 28.810536],
[115.364815, 28.811573],
[115.364498, 28.811974],
[115.364196, 28.812138],
[115.363718, 28.812653],
[115.363348, 28.812865],
[115.362673, 28.813753],
[115.362058, 28.814795],
[115.361517, 28.815474],
[115.361098, 28.81636],
[115.360407, 28.817542],
[115.360745, 28.817867],
[115.36233, 28.819044],
[115.363534, 28.819635],
[115.365592, 28.821015],
[115.366667, 28.819748],
[115.36699, 28.819745],
[115.367449, 28.820309],
[115.367644, 28.820364],
[115.3679, 28.820134],
[115.369391, 28.820517],
[115.369651, 28.820685],
[115.37043, 28.820961],
[115.371217, 28.821808],
[115.371666, 28.821632],
[115.371926, 28.821686],
[115.372543, 28.821985],
[115.373422, 28.822411],
[115.374994, 28.824045],
[115.37539, 28.82461],
[115.375836, 28.824207],
[115.376286, 28.824088],
[115.378464, 28.822587],
[115.376955, 28.820838],
[115.376952, 28.82061],
[115.377721, 28.820148],
[115.377326, 28.819583],
[115.376939, 28.819643],
[115.37655, 28.819476],
[115.376032, 28.819425],
[115.376299, 28.820048],
[115.376374, 28.820902],
[115.376313, 28.821129],
[115.374164, 28.8199],
[115.374417, 28.819442],
[115.37396, 28.819104],
[115.375926, 28.816296],
[115.377284, 28.816396],
[115.378834, 28.816323],
[115.379095, 28.816492],
[115.380301, 28.814886],
[115.379316, 28.813701],
[115.379376, 28.813302],
[115.378147, 28.813258],
[115.377481, 28.812545]
]
]
}
},
{
type: 'Feature',
properties: {
name: '靖安县工业园区 2'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[115.379426, 28.867116],
[115.379106, 28.861883],
[115.378492, 28.861931],
[115.378429, 28.861861],
[115.378436, 28.861657],
[115.379021, 28.861503],
[115.378965, 28.861346],
[115.378708, 28.861372],
[115.376654, 28.861079],
[115.376282, 28.860636],
[115.375666, 28.861144],
[115.374764, 28.860307],
[115.374447, 28.859886],
[115.373474, 28.859003],
[115.373131, 28.858552],
[115.373041, 28.858566],
[115.372855, 28.858617],
[115.372573, 28.858879],
[115.371666, 28.860315],
[115.369996, 28.861876],
[115.375075, 28.867798],
[115.37562, 28.869321],
[115.37525, 28.870801],
[115.374775, 28.8727],
[115.374943, 28.87462],
[115.374792, 28.875334],
[115.375983, 28.876459],
[115.375939, 28.876608],
[115.375222, 28.877572],
[115.37807, 28.881005],
[115.378063, 28.879291],
[115.37948, 28.875389],
[115.379065, 28.875273],
[115.378661, 28.874676],
[115.378631, 28.873822],
[115.37977, 28.873755],
[115.379555, 28.869579],
[115.378486, 28.86959],
[115.378453, 28.86843],
[115.379504, 28.868396],
[115.379426, 28.867116]
]
]
}
},
{
type: 'Feature',
properties: {
name: '雷公尖乡'
},
geometry: {
//type: 'MultiPolygon',
type: 'Polygon',
coordinates: [
[
[115.360229, 28.93476],
[115.361375, 28.932261],
[115.362678, 28.929828],
[115.363205, 28.928026],
[115.363666, 28.927262],
[115.364648, 28.92428],
[115.364565, 28.923866],
[115.364163, 28.923248],
[115.363834, 28.922077],
[115.363288, 28.922358],
[115.362892, 28.922155],
[115.362811, 28.922018],
[115.362655, 28.922019],
[115.362422, 28.922229],
[115.36211, 28.922371],
[115.361871, 28.922166],
[115.361867, 28.92182],
[115.363327, 28.919318],
[115.363164, 28.918904],
[115.363781, 28.918069],
[115.364955, 28.917781],
[115.365189, 28.91757],
[115.364472, 28.916818],
[115.364076, 28.916545],
[115.363604, 28.916482],
[115.363555, 28.916378],
[115.363409, 28.916635],
[115.363273, 28.916705],
[115.362762, 28.916676],
[115.361027, 28.916141],
[115.360907, 28.916003],
[115.36009, 28.91653],
[115.359663, 28.917018],
[115.359273, 28.917228],
[115.358998, 28.917266],
[115.358602, 28.91696],
[115.35836, 28.916409],
[115.358081, 28.916135],
[115.357101, 28.916249],
[115.355991, 28.915465],
[115.354912, 28.914059],
[115.354754, 28.914061],
[115.354635, 28.913958],
[115.354241, 28.913859],
[115.353724, 28.913311],
[115.352851, 28.912628],
[115.352257, 28.912289],
[115.352055, 28.911772],
[115.351895, 28.911567],
[115.35146, 28.911295],
[115.350267, 28.910236],
[115.349866, 28.909583],
[115.349191, 28.909071],
[115.348442, 28.908768],
[115.348322, 28.908596],
[115.347212, 28.907744],
[115.346618, 28.907404],
[115.346068, 28.907375],
[115.345988, 28.907306],
[115.345125, 28.90735],
[115.342529, 28.906485],
[115.3414, 28.906308],
[115.340618, 28.905889],
[115.340392, 28.905863],
[115.340167, 28.906036],
[115.339476, 28.907551],
[115.336143, 28.907446],
[115.336043, 28.907606],
[115.335363, 28.908691],
[115.334893, 28.908834],
[115.334042, 28.909809],
[115.331856, 28.910799],
[115.331384, 28.910804],
[115.330917, 28.911084],
[115.330375, 28.911712],
[115.329902, 28.911578],
[115.328959, 28.911588],
[115.328412, 28.911732],
[115.327787, 28.912014],
[115.327493, 28.912279],
[115.327831, 28.912238],
[115.32784, 28.912929],
[115.329262, 28.913607],
[115.331325, 28.915245],
[115.331975, 28.916897],
[115.331679, 28.918281],
[115.330593, 28.919399],
[115.330596, 28.919675],
[115.331082, 28.920776],
[115.330325, 28.922995],
[115.330048, 28.925901],
[115.330376, 28.927003],
[115.329605, 28.928117],
[115.329619, 28.929222],
[115.329008, 28.93061],
[115.329024, 28.931854],
[115.330134, 28.932672],
[115.331564, 28.933902],
[115.333296, 28.934162],
[115.333076, 28.934973],
[115.333592, 28.935229],
[115.334064, 28.935294],
[115.33454, 28.935635],
[115.335634, 28.93514],
[115.335869, 28.935138],
[115.336901, 28.935957],
[115.337217, 28.936092],
[115.337931, 28.936638],
[115.339275, 28.937247],
[115.34015, 28.938068],
[115.341021, 28.938681],
[115.342285, 28.939221],
[115.341671, 28.940263],
[115.340571, 28.940274],
[115.340107, 28.940833],
[115.339884, 28.941871],
[115.339889, 28.942216],
[115.340444, 28.942626],
[115.340538, 28.943799],
[115.341819, 28.945653],
[115.342297, 28.946131],
[115.342613, 28.946336],
[115.342934, 28.946817],
[115.343022, 28.947576],
[115.34295, 28.94813],
[115.343188, 28.948266],
[115.343428, 28.948608],
[115.343901, 28.948742],
[115.343978, 28.948603],
[115.343954, 28.946737],
[115.343872, 28.94653],
[115.344106, 28.946321],
[115.344025, 28.946114],
[115.344009, 28.94494],
[115.344315, 28.944246],
[115.344627, 28.944105],
[115.345266, 28.944858],
[115.345276, 28.945687],
[115.345748, 28.945682],
[115.345982, 28.945542],
[115.345894, 28.944852],
[115.346047, 28.944505],
[115.346676, 28.944568],
[115.346778, 28.946364],
[115.346324, 28.947751],
[115.345861, 28.948377],
[115.34579, 28.949],
[115.346263, 28.949134],
[115.346889, 28.948851],
[115.347203, 28.948847],
[115.34705, 28.949194],
[115.347756, 28.949118],
[115.350091, 28.947436],
[115.352051, 28.947001],
[115.353144, 28.946507],
[115.353851, 28.9465],
[115.354554, 28.946217],
[115.355496, 28.946138],
[115.356057, 28.946962],
[115.356853, 28.947714],
[115.358118, 28.948392],
[115.358676, 28.949008],
[115.360879, 28.949194],
[115.360875, 28.948848],
[115.361581, 28.948772],
[115.362057, 28.949182],
[115.363576, 28.949432],
[115.364108, 28.949783],
[115.367347, 28.951063],
[115.367818, 28.951058],
[115.368209, 28.950847],
[115.36946, 28.95042],
[115.370168, 28.950482],
[115.371116, 28.950886],
[115.371823, 28.950811],
[115.36863, 28.947042],
[115.369568, 28.946687],
[115.369722, 28.946409],
[115.370427, 28.946263],
[115.371909, 28.945488],
[115.373871, 28.94533],
[115.374106, 28.945189],
[115.376461, 28.945096],
[115.376931, 28.944953],
[115.378265, 28.94487],
[115.378974, 28.945001],
[115.380231, 28.944988],
[115.382193, 28.94483],
[115.383684, 28.944607],
[115.384155, 28.944602],
[115.38572, 28.944172],
[115.386583, 28.944024],
[115.388536, 28.943245],
[115.389792, 28.943093],
[115.391058, 28.940834],
[115.391153, 28.940511],
[115.389888, 28.93895],
[115.389723, 28.938399],
[115.389717, 28.937915],
[115.389158, 28.937299],
[115.388435, 28.936062],
[115.388272, 28.935649],
[115.388112, 28.935443],
[115.386847, 28.934834],
[115.386209, 28.934081],
[115.386191, 28.932768],
[115.385717, 28.932566],
[115.385251, 28.932916],
[115.384151, 28.932927],
[115.383997, 28.933136],
[115.384157, 28.93341],
[115.383691, 28.933761],
[115.383376, 28.933765],
[115.382676, 28.934255],
[115.382994, 28.934597],
[115.382624, 28.935016],
[115.38231, 28.935088],
[115.381998, 28.935299],
[115.381606, 28.935303],
[115.380979, 28.935448],
[115.38051, 28.93566],
[115.378545, 28.93561],
[115.378311, 28.935683],
[115.377604, 28.935689],
[115.3769, 28.935904],
[115.376507, 28.935908],
[115.376041, 28.936258],
[115.374395, 28.93669],
[115.373229, 28.937532],
[115.371194, 28.938243],
[115.370806, 28.938524],
[115.369473, 28.938675],
[115.368772, 28.939167],
[115.368457, 28.939169],
[115.368062, 28.938966],
[115.368054, 28.938344],
[115.367254, 28.937315],
[115.366938, 28.937112],
[115.366776, 28.936767],
[115.366462, 28.93677],
[115.366145, 28.936566],
[115.365667, 28.936018],
[115.365024, 28.934919],
[115.364787, 28.934921],
[115.364712, 28.935129],
[115.364164, 28.935274],
[115.363771, 28.935277],
[115.363537, 28.935418],
[115.363144, 28.935352],
[115.362747, 28.93515],
[115.361572, 28.9353],
[115.361255, 28.935095],
[115.360229, 28.93476]
]
]
}
},
{
type: 'Feature',
properties: {
name: '雷公尖乡 2'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[115.371589, 28.859872],
[115.371211, 28.860016],
[115.371267, 28.860078],
[115.368535, 28.862687],
[115.367856, 28.86343],
[115.367396, 28.864264],
[115.366696, 28.864755],
[115.3667, 28.865077],
[115.368048, 28.866055],
[115.368993, 28.866321],
[115.368985, 28.86563],
[115.369214, 28.865213],
[115.369604, 28.865001],
[115.369996, 28.864998],
[115.370151, 28.864789],
[115.370384, 28.864649],
[115.370388, 28.864855],
[115.369927, 28.865689],
[115.370641, 28.866235],
[115.370649, 28.866857],
[115.371043, 28.866922],
[115.371046, 28.867268],
[115.371362, 28.867333],
[115.372232, 28.867809],
[115.37373, 28.868277],
[115.373885, 28.868207],
[115.37396, 28.86786],
[115.374274, 28.867857],
[115.374674, 28.868406],
[115.37461, 28.869512],
[115.373763, 28.870765],
[115.373449, 28.870837],
[115.373288, 28.870494],
[115.373209, 28.870494],
[115.372733, 28.870085],
[115.371241, 28.870099],
[115.371085, 28.87017],
[115.370693, 28.870174],
[115.370224, 28.870386],
[115.368579, 28.87061],
[115.367876, 28.870894],
[115.367801, 28.871171],
[115.367895, 28.872414],
[115.367664, 28.872693],
[115.366878, 28.872701],
[115.366326, 28.872499],
[115.366179, 28.87326],
[115.365717, 28.873957],
[115.364632, 28.875004],
[115.365739, 28.875545],
[115.365621, 28.878657],
[115.365722, 28.880384],
[115.365892, 28.88135],
[115.366291, 28.88183],
[115.366298, 28.882382],
[115.365906, 28.882386],
[115.364734, 28.882813],
[115.363723, 28.883583],
[115.363421, 28.884485],
[115.363903, 28.885309],
[115.363665, 28.885173],
[115.364063, 28.885584],
[115.36423, 28.886342],
[115.364787, 28.88689],
[115.365097, 28.886541],
[115.365642, 28.88619],
[115.367357, 28.885274],
[115.368603, 28.884432],
[115.369688, 28.883384],
[115.37037, 28.882439],
[115.370613, 28.882062],
[115.371005, 28.882058],
[115.371955, 28.882601],
[115.37136, 28.885096],
[115.370529, 28.887592],
[115.369465, 28.890298],
[115.368234, 28.892176],
[115.368237, 28.892522],
[115.368478, 28.892865],
[115.368643, 28.893486],
[115.368492, 28.893902],
[115.36854, 28.894064],
[115.368574, 28.894177],
[115.36976, 28.894787],
[115.371417, 28.895392],
[115.371656, 28.895735],
[115.373227, 28.895719],
[115.373546, 28.896062],
[115.373711, 28.896613],
[115.374427, 28.897435],
[115.37483, 28.898191],
[115.37492, 28.899019],
[115.376334, 28.899074],
[115.376885, 28.899207],
[115.377278, 28.899202],
[115.377663, 28.899806],
[115.378751, 28.900721],
[115.379212, 28.901373],
[115.379784, 28.901591],
[115.380161, 28.901847],
[115.383565, 28.901899],
[115.384566, 28.901802],
[115.383891, 28.901273],
[115.383081, 28.90085],
[115.38292, 28.900626],
[115.382624, 28.90044],
[115.382463, 28.900199],
[115.381834, 28.900136],
[115.381517, 28.899863],
[115.380911, 28.898694],
[115.380904, 28.898073],
[115.381038, 28.897847],
[115.381445, 28.897394],
[115.381951, 28.897147],
[115.383772, 28.896679],
[115.384258, 28.896362],
[115.384373, 28.896223],
[115.384371, 28.896051],
[115.384231, 28.89581],
[115.384241, 28.895118],
[115.384354, 28.894772],
[115.384565, 28.89439],
[115.385188, 28.893986],
[115.386145, 28.893578],
[115.386557, 28.893523],
[115.387768, 28.893096],
[115.38809, 28.893074],
[115.388683, 28.893345],
[115.389233, 28.89346],
[115.390673, 28.892478],
[115.390632, 28.892306],
[115.390473, 28.892135],
[115.38972, 28.891624],
[115.389285, 28.891421],
[115.388833, 28.891408],
[115.387982, 28.890847],
[115.387569, 28.890835],
[115.387256, 28.890907],
[115.387158, 28.890856],
[115.387136, 28.890752],
[115.387468, 28.890576],
[115.387483, 28.890317],
[115.387107, 28.890009],
[115.38691, 28.88996],
[115.386946, 28.8897],
[115.387122, 28.889664],
[115.387699, 28.890263],
[115.388392, 28.890687],
[115.389676, 28.891313],
[115.390011, 28.891397],
[115.390129, 28.891361],
[115.390338, 28.890961],
[115.390554, 28.890959],
[115.390635, 28.891044],
[115.390699, 28.891493],
[115.390779, 28.891561],
[115.391352, 28.891832],
[115.392121, 28.892066],
[115.392571, 28.891992],
[115.392666, 28.891766],
[115.392791, 28.890832],
[115.39357, 28.89034],
[115.39384, 28.889957],
[115.393656, 28.889492],
[115.393571, 28.888958],
[115.392836, 28.888223],
[115.392887, 28.887635],
[115.393175, 28.8872],
[115.393016, 28.885888],
[115.392857, 28.885717],
[115.392541, 28.885634],
[115.391481, 28.88561],
[115.390749, 28.885134],
[115.390766, 28.884995],
[115.391992, 28.88424],
[115.393369, 28.882931],
[115.396303, 28.880671],
[115.39774, 28.880097],
[115.397518, 28.879034],
[115.397368, 28.878829],
[115.397285, 28.87851],
[115.397292, 28.878302],
[115.397369, 28.878172],
[115.39785, 28.87815],
[115.398064, 28.878035],
[115.398235, 28.877567],
[115.39821, 28.877239],
[115.396356, 28.875833],
[115.396254, 28.875574],
[115.396322, 28.874822],
[115.396182, 28.873139],
[115.396452, 28.872695],
[115.396235, 28.870426],
[115.3975, 28.869567],
[115.398418, 28.86852],
[115.397826, 28.867952],
[115.397264, 28.867374],
[115.397292, 28.867245],
[115.397581, 28.866862],
[115.398819, 28.86575],
[115.398652, 28.865573],
[115.398645, 28.865333],
[115.398919, 28.86483],
[115.398945, 28.864532],
[115.398838, 28.86424],
[115.398562, 28.863895],
[115.398397, 28.863551],
[115.398409, 28.863334],
[115.398566, 28.862974],
[115.398561, 28.862582],
[115.398373, 28.862302],
[115.397886, 28.862218],
[115.397685, 28.86208],
[115.397372, 28.861255],
[115.39666, 28.860263],
[115.395887, 28.859423],
[115.395553, 28.858833],
[115.395528, 28.858469],
[115.395593, 28.858243],
[115.396136, 28.857448],
[115.396287, 28.857019],
[115.396114, 28.855444],
[115.395909, 28.854502],
[115.395519, 28.853867],
[115.394849, 28.853448],
[115.394369, 28.853326],
[115.393412, 28.853359],
[115.39308, 28.853248],
[115.392792, 28.852932],
[115.392684, 28.852688],
[115.39262, 28.851999],
[115.39187, 28.851751],
[115.391454, 28.85153],
[115.390923, 28.851485],
[115.390389, 28.851092],
[115.390054, 28.850958],
[115.389958, 28.851148],
[115.389548, 28.851326],
[115.389254, 28.851364],
[115.388998, 28.85128],
[115.38878, 28.851126],
[115.388659, 28.850885],
[115.388689, 28.850194],
[115.387466, 28.849688],
[115.387146, 28.849277],
[115.387025, 28.849002],
[115.386788, 28.848935],
[115.386511, 28.84873],
[115.386034, 28.848286],
[115.385714, 28.847841],
[115.385242, 28.847776],
[115.385083, 28.84757],
[115.384848, 28.847573],
[115.384531, 28.847404],
[115.38414, 28.847546],
[115.381937, 28.847188],
[115.381506, 28.847192],
[115.380836, 28.846958],
[115.380565, 28.847236],
[115.379876, 28.848592],
[115.378904, 28.849292],
[115.378713, 28.849675],
[115.378611, 28.850954],
[115.378228, 28.85158],
[115.378042, 28.852411],
[115.378124, 28.852652],
[115.37813, 28.853101],
[115.37873, 28.853959],
[115.379085, 28.854024],
[115.380196, 28.854981],
[115.380087, 28.855638],
[115.379221, 28.856615],
[115.377894, 28.857181],
[115.377193, 28.857638],
[115.376486, 28.857645],
[115.376329, 28.857542],
[115.374759, 28.857662],
[115.373625, 28.85795],
[115.372865, 28.858281],
[115.372649, 28.858375],
[115.3723, 28.858724],
[115.371589, 28.859872],
[115.375222, 28.877572],
[115.375939, 28.876608],
[115.375983, 28.876459],
[115.374792, 28.875334],
[115.374943, 28.87462],
[115.374775, 28.8727],
[115.37525, 28.870801],
[115.37562, 28.869321],
[115.375075, 28.867798],
[115.369996, 28.861876],
[115.371666, 28.860315],
[115.372573, 28.858879],
[115.372855, 28.858617],
[115.373041, 28.858566],
[115.373131, 28.858552],
[115.373474, 28.859003],
[115.374447, 28.859886],
[115.374764, 28.860307],
[115.375666, 28.861144],
[115.376282, 28.860636],
[115.376654, 28.861079],
[115.378708, 28.861372],
[115.378965, 28.861346],
[115.379021, 28.861503],
[115.378436, 28.861657],
[115.378429, 28.861861],
[115.378492, 28.861931],
[115.379106, 28.861883],
[115.379426, 28.867116],
[115.379504, 28.868396],
[115.378453, 28.86843],
[115.378486, 28.86959],
[115.379555, 28.869579],
[115.37977, 28.873755],
[115.378631, 28.873822],
[115.378661, 28.874676],
[115.379065, 28.875273],
[115.37948, 28.875389],
[115.378063, 28.879291],
[115.37807, 28.881005],
[115.375222, 28.877572],
[115.371589, 28.859872]
]
]
}
}
],
tenantCenter: {
lng: '115.44865',
lat: '28.90294'
}
};
echarts.registerMap('area1', mapJson);
myChart.setOption({
series: [
{
type: 'map3D',
data: [
{ name: '雷公尖乡', value: 11 },
{ name: '雷公尖乡 2', value: 22 },
{ name: '靖安县工业园区', value: 44 },
{ name: '靖安县工业园区 2', value: 44 },
],
//geo3D: {
map: 'area1',
shading: 'realistic',
itemStyle: { color: 'green', borderWidth: 2, borderColor: 'brown' },
label: {
show: true, //是否显示市
color: 'black', //文字颜色
//borderWidth: 2,
fontWeight: 700,
fontSize: 16 //文字大小
},
realisticMaterial: {
roughness: 0.6,
textureTiling: 20
},
NO_postEffect: {
enable: true,
bloom: {
enable: false
},
SSAO: {
enable: true,
quality: 'medium',
radius: 10,
intensity: 1.2
},
depthOfField: {
enable: false,
focalRange: 5,
fstop: 1,
blurRadius: 6
}
},
groundPlane: {
show: true,
color: 'lemonchiffon'
},
NO_light: {
main: {
intensity: 6,
shadow: true,
shadowQuality: 'high',
alpha: 30
}
},
//viewControl: { minBeta: -660, maxBeta: 660 },
silent: true,
instancing: true,
}
],
visualMap: {
max: 50,
text: ['High', 'Low'],
realtime: true,
calculable: true,
inRange: {
color: ['lightskyblue', 'orangered']
}
}
});
the map name display cannot determine which sub-area it is on
I think the name goes to the first sub-area. And that is normal. It would be worse to have the name in the middle, completely disconnected from both areas. What one can do is separate the sub-areas geometries and name them individually.
Demo Code 📌
起初我们用的方式就是这个,但是现在需求是同一区域的子域名要放在一起,而且geojson数据是支持这么做的 问题是区域名称显示的不一定是第一个,给的例子中,静安工业园区显示的是在数组第一块区域中,雷公尖乡显示的是在数组第二块区域中。我现在数据有限,只能确定名称不是固定显示在第一个区域,期望是固定显示第一个或者有规律性
the name is not always displayed in the first area. I hope it is always displayed first
I agree, Now lets imagine the name gets displayed always on the first sub-area. Would you leave the second without a name?
the name is not always displayed in the first area. I hope it is always displayed first
I agree, Now lets imagine the name gets displayed always on the first sub-area. Would you leave the second without a name?
最好是和第一块显示一样的名字,选中的时候同一区域下所有子区域会同时高亮,可能让人无法理解
起初我们用的方式就是这个,但是现在需求是同一区域的子域名要放在一起,而且geojson数据是支持这么做的
问题是区域名称显示的不一定是第一个,给的例子中,静安工业园区显示的是在数组第一块区域中,雷公尖乡显示的是在数组第二块区域中。我现在数据有限,只能确定名称不是固定显示在第一个区域,期望是固定显示第一个或者有规律性