Class: EPSG3857

projection.EPSG3857

  • (protected) new projection.EPSG3857() [source]

  • Well-known projection used by Google maps or Open Street Maps, aka Mercator Projection.
    It is map's default projection.
    Mixes From:

    Members

  • (static, constant) code :String

  • "EPSG:3857", Code of the projection
    Type:
    • String

    Methods

  • (mixin) project(p) [source]

  • Project a geographical coordinate to a projected coordinate (2d coordinate)
    Parameter Type Description
    p Coordinate coordinate to project
    Mixes From:
    Returns:
    Coordinate:
  • (mixin) unproject(p) [source]

  • Unproject a projected coordinate to a geographical coordinate (2d coordinate)
    Parameter Type Description
    p Coordinate coordinate to project
    Mixes From:
    Returns:
    Coordinate:
  • (mixin) projectCoords(coordinates) [source]

  • Project a group of geographical coordinates to projected coordinates.
    Parameter Type Description
    coordinates Array.<Coordinate> | Array.<Array.<Coordinate>> | Array.<Array.<Array.<Coordinate>>> coordinates to project
    Mixes From:
    Returns:
    Array.<Coordinate>|Array.<Array.<Coordinate>>|Array.<Array.<Array.<Coordinate>>>:
  • (mixin) unprojectCoords(projCoords) [source]

  • Unproject a group of projected coordinates to geographical coordinates.
    Parameter Type Description
    projCoords Array.<Coordinate> | Array.<Array.<Coordinate>> | Array.<Array.<Array.<Coordinate>>> projected coordinates to unproject
    Mixes From:
    Returns:
    Array.<Coordinate>|Array.<Array.<Coordinate>>|Array.<Array.<Array.<Coordinate>>>:
  • (mixin) isSphere() [source]

  • Whether the projection is spherical
    Mixes From:
    Returns:
    Boolean:
  • (mixin) isOutSphere(pcoord) [source]

  • If the projected coord out of the sphere
    Parameter Type Description
    pcoord Coordinate projected coord
    Mixes From:
    Returns:
    Boolean:
  • (mixin) wrapCoord(pcoord) [source]

  • Wrap the projected coord in the sphere
    Parameter Type Description
    pcoord Coordinate projected coord
    Mixes From:
    Returns:
    Coordinate: wrapped projected coord
  • (mixin) measureLenBetween(c1, c2) [source]

  • Measure the length between 2 coordinates.
    Parameter Type Description
    c1 Coordinate
    c2 Coordinate
    Mixes From:
    Returns:
    Number:
  • (mixin) measureArea(coordinates) [source]

  • Measure the area closed by the given coordinates.
    Parameter Type Description
    coordinates Array.<Coordinate>
    Mixes From:
    Returns:
    number:
  • (mixin) locate(c, xDist, yDist) [source]

  • Locate a coordinate from the given source coordinate with a x-axis distance and a y-axis distance.
    Parameter Type Description
    c Coordinate source coordinate
    xDist Number x-axis distance
    yDist Number y-axis distance
    Mixes From:
    Returns:
    Coordinate:
  • (mixin) rotate(c, pivot, angle) [source]

  • Rotate a coordinate of given angle around pivot
    Parameter Type Description
    c Coordinate source coordinate
    pivot Coordinate pivot
    angle Number angle in degree
    Mixes From:
    Returns:
    Coordinate: