Table of Contents

Struct TileId

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

The ID of a tile.

public readonly record struct TileId : IEquatable<TileId>
Implements
Inherited Members

Remarks

canonical_x and canonical_y place the tile in the source's grid at zoom canonical_z. overscaled_z is the zoom that the map draws the tile at, and is greater when the source has no tiles that deep. wrap says which copy of the world holds the tile: zero for the main one, negative to the west, and positive to the east.

See mln_tile_id in the C API reference.

Constructors

TileId(uint, int, uint, uint, uint)

The ID of a tile.

public TileId(uint OverscaledZ, int Wrap, uint CanonicalZ, uint CanonicalX, uint CanonicalY)

Parameters

OverscaledZ uint
Wrap int
CanonicalZ uint
CanonicalX uint
CanonicalY uint

Remarks

canonical_x and canonical_y place the tile in the source's grid at zoom canonical_z. overscaled_z is the zoom that the map draws the tile at, and is greater when the source has no tiles that deep. wrap says which copy of the world holds the tile: zero for the main one, negative to the west, and positive to the east.

See mln_tile_id in the C API reference.

Properties

CanonicalX

public uint CanonicalX { get; init; }

Property Value

uint

CanonicalY

public uint CanonicalY { get; init; }

Property Value

uint

CanonicalZ

public uint CanonicalZ { get; init; }

Property Value

uint

OverscaledZ

public uint OverscaledZ { get; init; }

Property Value

uint

Wrap

public int Wrap { get; init; }

Property Value

int