From 53184b0ce284a6784356e1d1a2b57d86f6a9d5c1 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Wed, 28 Apr 2021 17:39:02 +0800
Subject: [PATCH] 地图  和详情  视频和 top  热力图细节

---
 public/map/widgets/supervisoryMap/FlareClusterLayer_v3.js |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/public/map/widgets/supervisoryMap/FlareClusterLayer_v3.js b/public/map/widgets/supervisoryMap/FlareClusterLayer_v3.js
index cb8249e..b02b060 100644
--- a/public/map/widgets/supervisoryMap/FlareClusterLayer_v3.js
+++ b/public/map/widgets/supervisoryMap/FlareClusterLayer_v3.js
@@ -73,12 +73,15 @@
       this.maxFlareCount = options.maxFlareCount || 8;
       this.displaySingleFlaresAtCount = options.displaySingleFlaresAtCount || 8;
       this.singleFlareTooltipProperty = options.singleFlareTooltipProperty || null;
-      var defaultTextSymbol = new TextSymbol()
+      var defaultTextSymbol = new TextSymbol()//聚合字体
         .setColor(new Color([255, 255, 255]))
         .setAlign(Font.ALIGN_START)
-        .setFont(new Font("10pt").setWeight(Font.WEIGHT_BOLD).setFamily("calibri"))
+        .setFont(new Font("15pt").setWeight(Font.WEIGHT_BOLD).setFamily("calibri"))
         .setVerticalAlignment("middle");
       defaultTextSymbol.font.size = 30;
+      defaultTextSymbol.yoffset=100;
+      // defaultTextSymbol.line.algin = 30;
+      console.log(defaultTextSymbol,2123445453)
       this.textSymbol = options.textSymbol || defaultTextSymbol;
       this.flareShowMode = options.flareShowMode || "mouse";
 
@@ -1539,7 +1542,7 @@
       tooltipGroup.rawNode.setAttribute("class", "tooltip-text");
 
       var textShapes = [];
-      for (var i = 0, len = lines.length; i < len; i++) {
+      for (var i = 0, len = lines.length; i < len; i++) {//聚合字体
         var textShape = tooltipGroup.createText({
           x: xPos,
           y: yPos + (i * 10),
@@ -1548,7 +1551,7 @@
         })
           .setFill("#000")
           .setFont({
-            size: 8,
+            size: 8,//聚合字体大小
             family: this.textSymbol.font.family,
             weight: this.textSymbol.font.weight
           });

--
Gitblit v1.9.3