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 365 map: this.map,
366 366 path: latLangs,
367 367 strokeColor: settings.polygonStrokeColor,
368   - fillColor: settings.polygonColor,
  368 + fillColor: qq.maps.Color.fromHex(settings.polygonColor, settings.polygonOpacity),
369 369 strokeWeight: settings.polygonStrokeWeight
370 370 });
371 371 //initialize-tooltip
... ... @@ -410,7 +410,7 @@ export default class TbTencentMap {
410 410 path: polygon.getPath(),
411 411 map: this.map,
412 412 strokeColor: color,
413   - fillColor: color,
  413 + fillColor: qq.maps.Color.fromHex(color, settings.polygonOpacity),
414 414 strokeWeight: settings.polygonStrokeWeight
415 415 }
416 416 polygon.setOptions(options);
... ...