UNPKG

@orca-fe/x-map

Version:
11 lines (10 loc) 415 B
import WebMercatorViewport from '@math.gl/web-mercator'; import { Bounds } from '../core/MapController'; import { MapViewport } from '../defs'; /** * 将经纬度列表转换为 bounds * @param posList 经纬度列表 * @returns bounds */ export declare const path2Bounds: (posList: [number, number][]) => Bounds; export declare const toSimpleViewport: (viewport: WebMercatorViewport) => MapViewport;