# Class: Projection

GeoPoint 地理坐标.

# Table of contents

# Constructors

# Properties

# Methods

# Constructors

# constructor

+ new Projection(): Projection

Returns: Projection

# Properties

# EARTH_BOUNDS

Static EARTH_BOUNDS: [number, number, number, number]

The equatorial semi perimeter in meters.


# EQUATORIAL_SEMIPERIMETER

Static EQUATORIAL_SEMIPERIMETER: number= 20037508.3427892

The equatorial semi perimeter in meters.

# Methods

# fromLngLat

Abstract fromLngLat(input: GeoPoint | Feature<Geometry | GeometryCollection, Properties> | FeatureCollection<Geometry | GeometryCollection, Properties> | Geometry | GeometryCollection | [number, number] | [number, number, number] | { x: number ; y: number ; z?: number } | { lat: number ; lng: number } | { lat: number ; lon: number } | GeoPointLike[]): GeoPoint | Feature<Geometry | GeometryCollection, Properties> | FeatureCollection<Geometry | GeometryCollection, Properties> | Geometry | GeometryCollection | [number, number] | [number, number, number] | { x: number ; y: number ; z?: number } | { lat: number ; lng: number } | { lat: number ; lon: number } | GeoPointLike[]

经纬度转地图地理坐标

# Parameters
Name Type Description
input GeoPoint | Feature<Geometry | GeometryCollection, Properties> | FeatureCollection<Geometry | GeometryCollection, Properties> | Geometry | GeometryCollection | [number, number] | [number, number, number] | { x: number ; y: number ; z?: number } | { lat: number ; lng: number } | { lat: number ; lon: number } | GeoPointLike[] 经纬度坐标点

Returns: GeoPoint | Feature<Geometry | GeometryCollection, Properties> | FeatureCollection<Geometry | GeometryCollection, Properties> | Geometry | GeometryCollection | [number, number] | [number, number, number] | { x: number ; y: number ; z?: number } | { lat: number ; lng: number } | { lat: number ; lon: number } | GeoPointLike[]


# fromMercator

Abstract fromMercator(input: GeoPointLike): [number, number]

墨卡托(epsg:3857)转坐标

# Parameters
Name Type Description
input GeoPointLike 墨卡托坐标点

Returns: [number, number]


# fromMeter

Abstract fromMeter(meter: number): number

把米转化为距离

# Parameters
Name Type
meter number

Returns: number


# getMapExtent

Abstract getMapExtent(): GeoBounds

得到地图范围

Returns: GeoBounds


# toLngLat

Abstract toLngLat(input: GeoPoint | Feature<Geometry | GeometryCollection, Properties> | FeatureCollection<Geometry | GeometryCollection, Properties> | Geometry | GeometryCollection | [number, number] | [number, number, number] | { x: number ; y: number ; z?: number } | { lat: number ; lng: number } | { lat: number ; lon: number } | GeoPointLike[]): LngLatLike

地图地理坐标转经纬度

# Parameters
Name Type Description
input GeoPoint | Feature<Geometry | GeometryCollection, Properties> | FeatureCollection<Geometry | GeometryCollection, Properties> | Geometry | GeometryCollection | [number, number] | [number, number, number] | { x: number ; y: number ; z?: number } | { lat: number ; lng: number } | { lat: number ; lon: number } | GeoPointLike[] 地理坐标点

Returns: LngLatLike


# toMercator

Abstract toMercator(input: GeoPointLike): [number, number]

坐标转墨卡托(epsg:3857)

# Parameters
Name Type Description
input GeoPointLike 坐标点

Returns: [number, number]


# toMeter

Abstract toMeter(dist: number): number

把距离转化为米

# Parameters
Name Type
dist number

Returns: number


# lngLat2Mercator

Static lngLat2Mercator(input: GeoPointLike): [number, number]

经纬度转墨卡托 .

# Parameters
Name Type
input GeoPointLike

Returns: [number, number]


# mercator2LngLat

Static mercator2LngLat(input: GeoPointLike): [number, number]

墨卡托转经纬度 .

# Parameters
Name Type
input GeoPointLike

Returns: [number, number]

vjmap / Exports / ReglBaseLayer