Show:

ia.GoogleMercatorProjection Class

COnverts to/from Google Mercator.

Constructor

ia.GoogleMercatorProjection

()

Item Index

Methods

_checkEllipsoid

()

Checks the ellipsoid.

project

(
  • lon
  • lat
  • useEllipsoid
)
X:0,y:0

Projects coords.

Parameters:

  • lon Number

    The longitude.

  • lat Number

    The latitude.

  • useEllipsoid Boolean

    true/false.

Returns:

X:0,y:0: The point.

project

(
  • xm
  • ym
  • useEllipsoid
)
X:0,y:0

Unprojects coords.

Parameters:

  • xm Number

    The x coord.

  • ym Number

    The y coord.

  • useEllipsoid Boolean

    true/false.

Returns:

X:0,y:0: The point.