Options for createTransformation.

Since

2023.1

Hierarchy

  • CreateTransformationOptions

Properties

normalizeWrapAround?: boolean

Indicates whether the X coordinate of the map reference point should be normalized to be inside projection bounds. Use this when you have Map.wrapAroundWorld enabled and want to transform an map reference point to a model reference (e.g. lon-lat) afterwards.

For example, in a mouse coordinate readout, where you go from a view point, to a point in the map's reference (which can be outside projection bounds), to a point in a model reference (lon-lat). You'll want to normalize the X coordinate in the map to model transformation.

We recommend using Map.wrapAroundWorld as value. This way, the created transformation will work on both maps, with Map.wrapAroundWorld enabled and disabled.

Default

false

Since

2023.1