Home > @magiclane/maps-sdk > ProjectionType > fromId

ProjectionType.fromId() function

Gets the ProjectionType from its id value

Signature:

function fromId(id: number): ProjectionType;

Parameters

Parameter

Type

Description

id

number

The id to convert

Returns:

ProjectionType

The corresponding ProjectionType

Exceptions

Error if the id is invalid