Browse Source

Update tencent-map.js (#2329)

Solve the problem that the polygonOpacity attribute does not work in Tencent map.
pull/2429/head
zbcumt 7 years ago
committed by GitHub
parent
commit
07eaf4dd77
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ui/src/app/widget/lib/tencent-map.js

4
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);

Loading…
Cancel
Save