transport-network-animator / Projection
• new Projection(_projection
)
Name | Type |
---|---|
_projection |
string |
▪ Static
projections: Object
The definitions of available projections, which can be added to.
▪ [name: string
]: (lonlat
: Vector
) => Vector
• Static
get
default(): Projection
The default projection as set by Config.mapProjection
▸ project(coords
): Vector
Project the given coordinates to the target projection.
Name | Type | Description |
---|---|---|
coords |
Vector |
The coords in WGS84 / EPSG:4326 |