tmap-gl-types
v0.1.8
Published
JavaScript API GL 类型库
Downloads
15
Readme
tmap-gl-types
JavaScript API GL 类型库
概述
腾讯地图 javascriptGL 类型声明,主要应用于typescript场景下 react 和 vue 组件库开发。
安装
npm install tmap-gl-types --save-dev
使用
import type TMapTypes from 'tmap-gl-types'
或
import MapTypes from 'tmap-gl-types';
declare global {
interface Window {
TMap: MapTypes;
}
}
版本映射表
腾讯地图线上javascriptGL版本号与tmap-gl-types 版本的对应关系(当出现兼容问题时,请升级types包版本)。
| TMap | tmap-gl-types | |---------|---------| | 1.6.6.6 | 0.1.7+ |