From 0b8b09b0b7d12745e38ec3b0c9cc98d6ac587d4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=8E=E6=82=94=E7=BC=96=E7=A8=8B=E5=93=A5?= Date: Wed, 12 Aug 2020 10:36:07 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#46608=20[bmapgl]?= =?UTF-8?q?=20update=20bmapgl=20types=20by=20@Junior2Ran?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add @types/bmapgl * update 3d api * fix Object to object --- types/bmapgl/bmapgl.core.d.ts | 2 ++ types/bmapgl/bmapgl.maptype.d.ts | 2 ++ types/bmapgl/bmapgl.overlay.d.ts | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/types/bmapgl/bmapgl.core.d.ts b/types/bmapgl/bmapgl.core.d.ts index fbabb81940..d477a15615 100644 --- a/types/bmapgl/bmapgl.core.d.ts +++ b/types/bmapgl/bmapgl.core.d.ts @@ -56,6 +56,8 @@ declare namespace BMapGL { getDraggingCursor(): string; setMinZoom(zoom: number): void; setMaxZoom(zoom: number): void; + setHeading(zoom: number): void; + setTilt(zoom: number): void; setMapStyle(mapStyle: MapStyle): void; setMapStyleV2(style: MapStyleV2): void; setPanorama(pano: Panorama): void; diff --git a/types/bmapgl/bmapgl.maptype.d.ts b/types/bmapgl/bmapgl.maptype.d.ts index ea821dba16..aa88f7c8fb 100644 --- a/types/bmapgl/bmapgl.maptype.d.ts +++ b/types/bmapgl/bmapgl.maptype.d.ts @@ -56,6 +56,8 @@ declare namespace BMapGL { type PerspectiveProjection = Projection; } declare const BMAP_NORMAL_MAP: BMapGL.MapType; +declare const BMAPGL_NORMAL_MAP: BMapGL.MapType; +declare const BMAP_EARTH_MAP: BMapGL.MapType; declare const BMAP_PERSPECTIVE_MAP: BMapGL.MapType; declare const BMAP_SATELLITE_MAP: BMapGL.MapType; declare const BMAP_HYBRID_MAP: BMapGL.MapType; diff --git a/types/bmapgl/bmapgl.overlay.d.ts b/types/bmapgl/bmapgl.overlay.d.ts index b4bee49fe2..975c015c59 100644 --- a/types/bmapgl/bmapgl.overlay.d.ts +++ b/types/bmapgl/bmapgl.overlay.d.ts @@ -38,6 +38,8 @@ declare namespace BMapGL { draw?(): void; show?(): void; hide?(): void; + addEventListener(event: string, handler: Callback): void; + removeEventListener(event: string, handler: Callback): void; } type SymbolShapeType = number; interface PolylineOptions { @@ -320,6 +322,8 @@ declare namespace BMapGL { interface IconOptions { anchor?: Size; imageOffset?: Size; + imageSize?: Size; + srcset?: object; infoWindowAnchor?: Size; printImageUrl?: string; }