tg-map-vue3 3.6.1 → 3.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,7 @@
3
3
  ## 3.6.x
4
4
 
5
5
  - feat: 添加[MapUrls], 支持打开地图网页
6
+ - fix: 百度地图的覆盖物([BaiduShape])不能隐藏填充/线条颜色的问题
6
7
  - ***BREAKING CHANGE***: `placeService` -> `placesService`
7
8
 
8
9
  ## 3.5.x
@@ -54,3 +55,4 @@
54
55
  [SearchBox]: src/map/map/extra/search-box.ts "搜索框"
55
56
  [useTgMapInner]: src/components/map-hooks.ts
56
57
  [LatLngBounds]: src/map/lat-lng.ts#L157
58
+ [BaiduShape]: src/map/map/overlay/shape.ts#L32
@@ -28,6 +28,13 @@ export declare abstract class BaiduShape<T extends UnionBaiduShape> extends Baid
28
28
  protected state: {
29
29
  editable: boolean;
30
30
  };
31
+ /**
32
+ * baidu地图的透明度属性有如下问题:
33
+ * - 在透明度为0时, 无法隐藏掉颜色
34
+ * - 透明度为0.7和0.8时, 在maintain的发布模式下, polyline的线条会不可见 (原因未知, 在tg-map中无法复现)
35
+ * 故统一加个0.001, 规避这些问题...
36
+ */
37
+ static OPACITY_DELTA: number;
31
38
  constructor(innerOverlay: T, coordType: CoordType, map: BaiduMap, state: {
32
39
  editable: boolean;
33
40
  });