From 7df3c8dd7508261f8f6a2d4b917d5a71406e8a00 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Wed, 22 May 2024 19:15:54 +0800 Subject: [PATCH] type(map): update option type. (#357) --- packages/types/src/core.d.ts | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/packages/types/src/core.d.ts b/packages/types/src/core.d.ts index b72b4ee95..982f6c593 100644 --- a/packages/types/src/core.d.ts +++ b/packages/types/src/core.d.ts @@ -590,6 +590,40 @@ declare namespace AMap { * //一个带洞多边形 [ [lng4,lat4] , [lng5,lat5] , [lng6,lat6] ], [ [lng7,lat7] , [lng8,lat8] , [lng9,lat9] ] ] ]} */ mask?: Array; + /** + * `VIP 用户` 拿海外地图的图层,需要设置 `overseaDataType` 和 `vectorMapForeign` 两个参数。 + * + * ```json + * overseaDataType: "mapbox", + * vectorMapForeign: "style_zh_cn" + * ``` + * - https://github.com/uiwjs/react-amap/issues/357 + */ + overseaDataType?: string; + /** + * `VIP 用户` 拿海外地图的图层,需要设置 `overseaDataType` 和 `vectorMapForeign` 两个参数。 + * + * ```json + * overseaDataType: "mapbox", + * vectorMapForeign: "style_zh_cn" + * ``` + * - https://github.com/uiwjs/react-amap/issues/357 + */ + vectorMapForeign?: string, + /** + * 可下载地图设置 + * + * ```json + * WebGLParams: { + * preserveDrawingBuffer: true, + * } + * ``` + * + * - https://github.com/uiwjs/react-amap/issues/357#issuecomment-2124292404 + */ + WebGLParams?: { + preserveDrawingBuffer?: boolean, + } } function plugin(ControlType: Array, callBack: () => void): void; /**