Struct CanonicalTileId
Data type to store Web Mercator tile scheme. See tile IDs in action.
Namespace:Mapbox.Map
Assembly:Mapbox.Map.dll
Syntax
public struct CanonicalTileId
Constructors
CanonicalTileId(Int32, Int32, Int32)
Initializes a new instance of the CanonicalTileId struct, representing a tile coordinate in a slippy map.
Declaration
public CanonicalTileId(int z, int x, int y)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | z | The z coordinate or the zoom level. |
System.Int32 | x | The x coordinate. |
System.Int32 | y | The y coordinate. |
Fields
X
The X coordinate in the tile grid.
Declaration
public readonly int X
Field Value
Type | Description |
---|---|
System.Int32 |
Y
The Y coordinate in the tile grid.
Declaration
public readonly int Y
Field Value
Type | Description |
---|---|
System.Int32 |
Z
The zoom level.
Declaration
public readonly int Z
Field Value
Type | Description |
---|---|
System.Int32 |
Methods
ToString()
Returns a System.String that represents the current CanonicalTileId.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the current CanonicalTileId. |
ToVector2d()
Get the cordinate at the top left of corner of the tile.
Declaration
public Vector2d ToVector2d()
Returns
Type | Description |
---|---|
Vector2d | The coordinate. |