🤖 Merge PR #46608 [bmapgl] update bmapgl types by @Junior2Ran

* add @types/bmapgl

* update 3d api

* fix Object to object
This commit is contained in:
后悔编程哥 2020-08-12 10:36:07 +08:00 committed by GitHub
parent 1dc4371d07
commit 0b8b09b0b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 0 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;
}