Google.Maps.Coord.TileCoord

An immutable representation of the x,y coordinates of a Google Maps tile.

Summary

For more information, see Map and Tile Coordinates.

Inheritance

Inherits from: IEquatable< TileCoord >

Constructors and Destructors

TileCoord(int x, int y, int zoom, bool normalize)
The TileCoord constructor.

Public attributes

X
readonly int
The x coordinate.
Y
readonly int
The y coordinate.
Zoom
readonly int
The zoom level.

Public functions

Equals(TileCoord other)
bool
Implements the IEquatable{T} interface.
Equals(object obj)
override bool
Overrides the Equals() method.
GetHashCode()
override int
Overrides the GetHashCode() method.
ToString()
override string
Returns the formatted string representation of this TileCoord.

Public attributes

X

readonly int Google::Maps::Coord::TileCoord::X

The x coordinate.

This value is returned by the MaxValue() method. The X coordinates wrap. For more information, see Map and Tile Coordinates.

Y

readonly int Google::Maps::Coord::TileCoord::Y

The y coordinate.

The Y coordinates are clamped. For more information, see Map and Tile Coordinates.

Zoom

readonly int Google::Maps::Coord::TileCoord::Zoom

The zoom level.

Public functions

Equals

bool Google::Maps::Coord::TileCoord::Equals(
  TileCoord other
)

Implements the IEquatable{T} interface.

Details
Parameters
other
The other TileCoord to compare with this one.
Returns
A boolean value that indicates whether the specified TileCoord and this one are equal.

Equals

override bool Google::Maps::Coord::TileCoord::Equals(
  object obj
)

Overrides the Equals() method.

Details
Parameters
obj
The other object to compare with this TileCoord.

GetHashCode

override int Google::Maps::Coord::TileCoord::GetHashCode()

Overrides the GetHashCode() method.

TileCoord

 Google::Maps::Coord::TileCoord::TileCoord(
  int x,
  int y,
  int zoom,
  bool normalize
)

The TileCoord constructor.

Details
Parameters
x
The x coordinate.
y
The y coordinate.
zoom
The zoom level.
normalize
If this parameter is true, then the x coordinate is wrapped, and the y coordinate is clamped to the extent of the tile coordinate space at this zoom level.

ToString

override string Google::Maps::Coord::TileCoord::ToString()

Returns the formatted string representation of this TileCoord.