Project a point from Spherical Mercator to latitude/longitude.
Point object in Spherical Mercator.
The same point in latitude/longitude.
Gets the required scale transform to apply to shapes so distance and area computations yield actual Earth-geodesic units instead of projected map units.
Reference latitude for the computation.
number
Scale transform multiplier.
Gets actual, on-the-ground meters per pixel for a given zoom level and map point in map units.
Reference location for the computation.
number
Meters per pixel multiplier.
Gets the optimal zoom level for a given envelope in map units based on the envelope of visible device area in pixels.
Envelope in map units to display.
Envelope in pixels of visible area.
number
Optimal zoom level for viewing envelopeMap.
Returns equitorial circumference in meters for this projection
number
Equitorial circumference in meters.
Gets the display DPI, which defaults to 96. Note: The dpi is recomputed on page load complete.
number
Dots per inch on display.
Gets the EPSG number for Spherical Mercator.
number
ESPG number.
Returns half the equitorial circumference in meters for this projection
number
Half of the equitorial circumference in meters.
Gets the maxmimum zoom level for this projection.
number
Maximum zoom level.
Gets the minimum zoom level for this projection.
number
Minimum zoom level.
Gets projected map units per pixel for a given zoom level.
Reference zoom level.
number
Projection units per pixel.
Gets a quad-key from x, y, and z coordinates.
The x coordinate.
The y coordinate.
The z coordinate.
string
Quad-key string.
Gets the envelope in map units of tiles in the quadtree from an evelope in map units and a zoom level.
Envelope for which to find intersecting tiles.
Zoom level with which to test for intersection.
The envelope in map units of the tiles.
Get the envelope in map units for a given quadtree node, i.e. tile, based on the given x, y, and z quadtree coordinates.
The x coordinate.
The y coordinate.
The z coordinate.
Envelope of the tile in map units.
Return the equitorial radius in meters for this projection.
number
Equitorial radius in meters.
Gets the tile height and width in pixels.
number
The height and width of the tiles in pixels.
Gets x, y, and z coordinates as an object from a given quad-key.
Reference quad-key.
{ x: number; y: number; z: number; }
JavaScript object of the form {x,y,z}.
Project a point from latitude/longitude to Spherical Mercator.
Point object in latitude/longitude.
The same point in Spherical Mercator.
Set the display DPI, which defaults to 96. Note: The DPI is recomputed on page load complete.
Dots per inch on display.
Sets the maximum zoom level for this projection. Normally this is set to 20.0 and should not be altered.
Sets the minimum zoom level for this projection. Normally this is set to 1.0 and should not be altered.
Desired minimum zoom level.