Class: DEFAULT

projection.DEFAULT

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

  • Default projection, EPSG3857
    Extends:

    Methods

  • (inherited) project(p) [source]

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

  • Unproject a projected coordinate to a geographical coordinate (2d coordinate)
    Parameter Type Description
    p Coordinate coordinate to project
    Mixes From:
    Inherited From:
    Returns:
    Coordinate:
  • (inherited) 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:
    Inherited From:
    Returns:
    Array.<Coordinate>|Array.<Array.<Coordinate>>|Array.<Array.<Array.<Coordinate>>>:
  • (inherited) 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:
    Inherited From:
    Returns:
    Array.<Coordinate>|Array.<Array.<Coordinate>>|Array.<Array.<Array.<Coordinate>>>:
  • (inherited) isSphere() [source]

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

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

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

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

  • Measure the area closed by the given coordinates.
    Parameter Type Description
    coordinates Array.<Coordinate>
    Mixes From:
    Inherited From:
    Returns:
    number:
  • (inherited) 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:
    Inherited From:
    Returns:
    Coordinate:
  • (inherited) 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:
    Inherited From:
    Returns:
    Coordinate: