| | |
| | | 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"; |
| | | |
| | |
| | | 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), |
| | |
| | | }) |
| | | .setFill("#000") |
| | | .setFont({ |
| | | size: 8, |
| | | size: 8,//聚合字体大小 |
| | | family: this.textSymbol.font.family, |
| | | weight: this.textSymbol.font.weight |
| | | }); |