This is an 的Type Definitions of QQMaps - JavaScript API V2 .
- Provide Complete Type Definitions (100%)
- Provide Complete Type Definitions with Comments (0%)
- Pure API Example (50%)
- UI Framework Component Example
- Typing Tests
yarn add -D lbs-tencent-typings
如果项目中使用了eslint-loader
+ 不允许未经定义的全局变量, 可以通过在引入修改这份typings之后, 修改你的ESLint配置.
具体改动为: 在ESLint配置文件(例如.eslintrc
)中定义globals
,在里面添加qq
这个namespace
{
"globals": {
"qq": true
}
}
为此, 写了一个使用create-react-app + antd 的 autocomplete 组件快速发开的, 脚本加载API和地点搜索补全功能.
详见Demo页面: LBS Tencent Typings Sample
样例Repository: lbs-tencent-typings-sample