Show / Hide Table of Contents

    Class WebMercatorProjection

    Methods for computing web mercator projection tiles and coordinates.

    Inheritance
    System.Object
    WebMercatorProjection
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Elements.Spatial
    Assembly: Hypar.Elements.dll
    Syntax
    public static class WebMercatorProjection

    Methods

    GetTileSizeMeters(Double, Int32)

    Get the tile size, in meters.

    Declaration
    public static double GetTileSizeMeters(double lat, int zoom)
    Parameters
    Type Name Description
    System.Double lat

    The latitude of the tile, in degrees.

    System.Int32 zoom

    The zoom level of the tile.

    Returns
    Type Description
    System.Double

    TileIdToCenterWebMercator(Int32, Int32, Int32)

    Get the center of the mercator web tile.

    Declaration
    public static Vector3 TileIdToCenterWebMercator(int x, int y, int zoom)
    Parameters
    Type Name Description
    System.Int32 x
    System.Int32 y
    System.Int32 zoom
    Returns
    Type Description
    Vector3