mirror of https://gitee.com/antv-l7/antv-l7
fix: 修复 simpleMapCoord 类型定义
This commit is contained in:
parent
f4bb311900
commit
31418a4d9a
|
@ -1,4 +1,4 @@
|
||||||
import { SimpleCoordinate } from '@antv/l7-maps';
|
import { SimpleMapCoord } from '@antv/l7-maps';
|
||||||
import { Container } from 'inversify';
|
import { Container } from 'inversify';
|
||||||
import { IViewport } from '../camera/ICameraService';
|
import { IViewport } from '../camera/ICameraService';
|
||||||
export type Point = [number, number];
|
export type Point = [number, number];
|
||||||
|
@ -37,7 +37,7 @@ export interface IMapWrapper {
|
||||||
|
|
||||||
export interface IMapService<RawMap = {}> {
|
export interface IMapService<RawMap = {}> {
|
||||||
version?: string;
|
version?: string;
|
||||||
simpleMapCoord: SimpleCoordinate;
|
simpleMapCoord: SimpleMapCoord;
|
||||||
map: RawMap;
|
map: RawMap;
|
||||||
bgColor: string;
|
bgColor: string;
|
||||||
setBgColor(color: string): void;
|
setBgColor(color: string): void;
|
||||||
|
|
|
@ -23,7 +23,6 @@ import { DOM } from '@antv/l7-utils';
|
||||||
import { mat4, vec2, vec3 } from 'gl-matrix';
|
import { mat4, vec2, vec3 } from 'gl-matrix';
|
||||||
import { inject, injectable } from 'inversify';
|
import { inject, injectable } from 'inversify';
|
||||||
import 'reflect-metadata';
|
import 'reflect-metadata';
|
||||||
import { SimpleCoordinate } from '..';
|
|
||||||
import { IAMapEvent, IAMapInstance } from '../../typings/index';
|
import { IAMapEvent, IAMapInstance } from '../../typings/index';
|
||||||
import SimpleMapCoord from '../simpleMapCoord';
|
import SimpleMapCoord from '../simpleMapCoord';
|
||||||
import { toPaddingOptions } from '../utils';
|
import { toPaddingOptions } from '../utils';
|
||||||
|
@ -58,7 +57,7 @@ const LNGLAT_OFFSET_ZOOM_THRESHOLD = 12; // 暂时关闭 fix 统一不同坐标
|
||||||
export default class AMapService
|
export default class AMapService
|
||||||
implements IMapService<AMap.Map & IAMapInstance> {
|
implements IMapService<AMap.Map & IAMapInstance> {
|
||||||
public version: string = Version['GAODE1.x'];
|
public version: string = Version['GAODE1.x'];
|
||||||
public simpleMapCoord: SimpleCoordinate = new SimpleMapCoord();
|
public simpleMapCoord: SimpleMapCoord = new SimpleMapCoord();
|
||||||
/**
|
/**
|
||||||
* 原始地图实例
|
* 原始地图实例
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -5,9 +5,9 @@ import Earth from './earth/';
|
||||||
// import GaodeMapV2 from './amap2/';
|
// import GaodeMapV2 from './amap2/';
|
||||||
import Map from './map/';
|
import Map from './map/';
|
||||||
import Mapbox from './mapbox/';
|
import Mapbox from './mapbox/';
|
||||||
import SimpleCoordinate from './simpleMapCoord';
|
import SimpleMapCoord from './simpleMapCoord';
|
||||||
import { Version } from './version';
|
import { Version } from './version';
|
||||||
|
|
||||||
export { SimpleCoordinate, Version, GaodeMap, GaodeMapV2, Mapbox, Map, Earth };
|
export { SimpleMapCoord, Version, GaodeMap, GaodeMapV2, Mapbox, Map, Earth };
|
||||||
// export { GaodeMap, GaodeMapV2, Mapbox, Map };
|
// export { GaodeMap, GaodeMapV2, Mapbox, Map };
|
||||||
// export { Map };
|
// export { Map };
|
||||||
|
|
Loading…
Reference in New Issue