Skip to content

Latest commit

 

History

History
91 lines (48 loc) · 1.75 KB

Projection.md

File metadata and controls

91 lines (48 loc) · 1.75 KB

transport-network-animator / Projection

Class: Projection

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new Projection(_projection)

Parameters

Name Type
_projection string

Defined in

Projection.ts:8

Properties

projections

Static projections: Object

The definitions of available projections, which can be added to.

Index signature

▪ [name: string]: (lonlat: Vector) => Vector

Defined in

Projection.ts:24

Accessors

default

Static get default(): Projection

The default projection as set by Config.mapProjection

Returns

Projection

Defined in

Projection.ts:17

Methods

project

project(coords): Vector

Project the given coordinates to the target projection.

Parameters

Name Type Description
coords Vector The coords in WGS84 / EPSG:4326

Returns

Vector

Defined in

Projection.ts:35