Commit 07eaf4dd77c6c494d540c0b01424a6024d9b1406

Authored by zbcumt
Committed by GitHub
1 parent 9d6b1c5d

Update tencent-map.js (#2329)

Solve the problem that the polygonOpacity attribute does not work in Tencent map.
@@ -365,7 +365,7 @@ export default class TbTencentMap { @@ -365,7 +365,7 @@ export default class TbTencentMap {
365 map: this.map, 365 map: this.map,
366 path: latLangs, 366 path: latLangs,
367 strokeColor: settings.polygonStrokeColor, 367 strokeColor: settings.polygonStrokeColor,
368 - fillColor: settings.polygonColor, 368 + fillColor: qq.maps.Color.fromHex(settings.polygonColor, settings.polygonOpacity),
369 strokeWeight: settings.polygonStrokeWeight 369 strokeWeight: settings.polygonStrokeWeight
370 }); 370 });
371 //initialize-tooltip 371 //initialize-tooltip
@@ -410,7 +410,7 @@ export default class TbTencentMap { @@ -410,7 +410,7 @@ export default class TbTencentMap {
410 path: polygon.getPath(), 410 path: polygon.getPath(),
411 map: this.map, 411 map: this.map,
412 strokeColor: color, 412 strokeColor: color,
413 - fillColor: color, 413 + fillColor: qq.maps.Color.fromHex(color, settings.polygonOpacity),
414 strokeWeight: settings.polygonStrokeWeight 414 strokeWeight: settings.polygonStrokeWeight
415 } 415 }
416 polygon.setOptions(options); 416 polygon.setOptions(options);