| 
						
						
							
								
							
						
						
					 | 
					@ -201,32 +201,35 @@ export default { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      const polygon = [ | 
					 | 
					 | 
					      const polygon = [ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        ...srcGridData.children | 
					 | 
					 | 
					        ...srcGridData.children | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          .filter((item) => item.coordinates.length > 0) | 
					 | 
					 | 
					          .filter((item) => item.coordinates.length > 0) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					          .map((item) => ({ | 
					 | 
					 | 
					          .map((item) => { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            type: "Feature", | 
					 | 
					 | 
					            let countItem = gridCountData.find( | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            properties: { | 
					 | 
					 | 
					              (item2) => item2.orgId == item.id | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					              //   id: item.id, | 
					 | 
					 | 
					            ); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					              //   name: item.name, | 
					 | 
					 | 
					            console.log("countItem", countItem); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					              //   level: item.level, | 
					 | 
					 | 
					            return { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					              center: [item.longitude, item.latitude], | 
					 | 
					 | 
					              type: "Feature", | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					              ...item, | 
					 | 
					 | 
					              properties: { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					              dotCount: gridCountData.find((item2) => item2.orgId == item.id) | 
					 | 
					 | 
					                ...item, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                ? gridCountData.find((item2) => item2.orgId == item.id).total | 
					 | 
					 | 
					                center: [item.longitude, item.latitude], | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                : "", | 
					 | 
					 | 
					                dotCount: countItem | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            }, | 
					 | 
					 | 
					                  ? countItem.categoryName + ":" + countItem.total | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            geometry: { | 
					 | 
					 | 
					                  : "", | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					              type: "Polygon", | 
					 | 
					 | 
					              }, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					              coordinates: [ | 
					 | 
					 | 
					              geometry: { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                item.latitude | 
					 | 
					 | 
					                type: "Polygon", | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                  ? [[item.longitude, item.latitude]] | 
					 | 
					 | 
					                coordinates: [ | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                  : spliceIntoChunks( | 
					 | 
					 | 
					                  item.latitude | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                      item.coordinates | 
					 | 
					 | 
					                    ? [[item.longitude, item.latitude]] | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                        .split(",") | 
					 | 
					 | 
					                    : spliceIntoChunks( | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                        .map((item) => parseFloat(item)), | 
					 | 
					 | 
					                        item.coordinates | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                      2 | 
					 | 
					 | 
					                          .split(",") | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                    ).filter((item) => item.length == 2), | 
					 | 
					 | 
					                          .map((item) => parseFloat(item)), | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					              ], | 
					 | 
					 | 
					                        2 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            }, | 
					 | 
					 | 
					                      ).filter((item) => item.length == 2), | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					          })), | 
					 | 
					 | 
					                ], | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					              }, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            }; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					          }), | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      ]; | 
					 | 
					 | 
					      ]; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      return { type: "FeatureCollection", features: polygon }; | 
					 | 
					 | 
					      return { type: "FeatureCollection", features: polygon }; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    }, | 
					 | 
					 | 
					    }, | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -496,7 +499,7 @@ export default { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        .source(polygonDotData) | 
					 | 
					 | 
					        .source(polygonDotData) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        .color("name", styleConfig.textColor) | 
					 | 
					 | 
					        .color("name", styleConfig.textColor) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        .shape("dotCount", "text") | 
					 | 
					 | 
					        .shape("dotCount", "text") | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        .size(16) | 
					 | 
					 | 
					        .size(14) | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        .style({ | 
					 | 
					 | 
					        .style({ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          textAnchor: "center", // 文本相对锚点的位置 center|left|right|top|bottom|top-left | 
					 | 
					 | 
					          textAnchor: "center", // 文本相对锚点的位置 center|left|right|top|bottom|top-left | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          textOffset: [0, -80], // 文本相对锚点的偏移量 [水平, 垂直] | 
					 | 
					 | 
					          textOffset: [0, -80], // 文本相对锚点的偏移量 [水平, 垂直] | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |