UNPKG

@tuoyuan/map-adapter-grid-tile-map

Version:

自定义栅格地图适配器

32 lines (31 loc) 1.09 kB
import { CoordinateSystem, IMapInitOptions } from '@tuoyuan/map-adapter-lib'; import { AMap } from '@tuoyuan/map-adapter-amap'; export interface IGridTileMapOption { /** 高德平台key */ key: string; /** 高德平台密钥 */ secret?: string; /** 天地图token */ tmap_token: string; } export interface IGridTileMapInitOptions { /** 自定义瓦片图层地址,参数使用"{}"包裹 */ tileUrl: string; /** 瓦片图层尺寸 */ tileSize?: number; /** 瓦片图层最小层级范围 */ tileDataMinZooms: number; /** 瓦片图层最大层级范围 */ tileDataMaxZooms: number; /** 开启天地图影像底图(球面墨卡托投影) */ satellite?: boolean; /** 开启天地图影像注记(球面墨卡托投影) */ satelliteAnnotion?: boolean; } export declare class GridTileMap extends AMap { coordinateSystem: CoordinateSystem; protected tmap_token: string; constructor(); load(config: IGridTileMapOption): Promise<void>; init(options: IMapInitOptions, selfOptions?: any): Promise<any>; }