-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
daiwanxing
committed
Jan 26, 2023
1 parent
36c2458
commit b155bee
Showing
6 changed files
with
52 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
type UtilLibs = | ||
| "DrawingManager" | ||
| "AreaRestriction" | ||
| "CustomOverlay" | ||
| "DistanceTool" | ||
| "InfoBox" | ||
| "Lushu" | ||
| "GeoUtils" | ||
| "RichMarker" | ||
| "TrackAnimation"; | ||
|
||
declare namespace BMapJSAPI { | ||
export interface LoadParams { | ||
/** | ||
* 百度地图版本 | ||
*/ | ||
v: string; | ||
/** | ||
* 百度地图开发密钥 | ||
*/ | ||
ak: string; | ||
/** | ||
* 目前 type 的值只能是 webgl | ||
*/ | ||
type?: string; | ||
/** | ||
* 百度地图开源工具库 | ||
*/ | ||
library: { | ||
lib: UtilLibs; | ||
version?: string; | ||
}[]; | ||
} | ||
} | ||
declare module "bmap-loader" { | ||
const a: BMapJSPI.MyType; | ||
|
||
const loader: (params: BMapJSAPI.LoadParams) => Promise<null>; | ||
|
||
export default loader; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
declare interface Window { | ||
__BMapLoadedCallBack: (...args: any[]) => void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.