From 07eaf4dd77c6c494d540c0b01424a6024d9b1406 Mon Sep 17 00:00:00 2001 From: zbcumt <57447148+zbcumt@users.noreply.github.com> Date: Wed, 19 Feb 2020 20:49:02 +0800 Subject: [PATCH] Update tencent-map.js (#2329) Solve the problem that the polygonOpacity attribute does not work in Tencent map. --- ui/src/app/widget/lib/tencent-map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/app/widget/lib/tencent-map.js b/ui/src/app/widget/lib/tencent-map.js index 68940bd313..ac6b4a8ea1 100644 --- a/ui/src/app/widget/lib/tencent-map.js +++ b/ui/src/app/widget/lib/tencent-map.js @@ -365,7 +365,7 @@ export default class TbTencentMap { map: this.map, path: latLangs, strokeColor: settings.polygonStrokeColor, - fillColor: settings.polygonColor, + fillColor: qq.maps.Color.fromHex(settings.polygonColor, settings.polygonOpacity), strokeWeight: settings.polygonStrokeWeight }); //initialize-tooltip @@ -410,7 +410,7 @@ export default class TbTencentMap { path: polygon.getPath(), map: this.map, strokeColor: color, - fillColor: color, + fillColor: qq.maps.Color.fromHex(color, settings.polygonOpacity), strokeWeight: settings.polygonStrokeWeight } polygon.setOptions(options);