Home > @magiclane/maps-sdk > TilesCollectionGeographicArea > convert

TilesCollectionGeographicArea.convert() method

Converts the tile collection to another geographic area type, if possible.

Signature:

convert(toType: GeographicAreaType): GeographicArea | null;

Parameters

Parameter

Type

Description

toType

GeographicAreaType

The GeographicAreaType to convert to.

Returns:

GeographicArea | null

A GeographicArea object representing the converted area, or null if the conversion failed.