Skip to content
Last updated

API / geotoolkit / map / coordinatesystems / WebMercator / WebMercator

Class: WebMercator

coordinatesystems.WebMercator.WebMercator

This class specifies the Web Mercator coordinate system

Hierarchy

Table of contents

Constructors
  • [new WebMercator(epsg)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.map.coordinatesystems.webmercator.webmercator.md#new webmercator(epsg))
Methods

Contents

Constructors

new WebMercator(epsg)

• new WebMercator(epsg?)

Parameters

Name Type Description
Optional epsgnumberepsg code of coordinate system

Overrides

AbstractSystem.constructor

Methods

getClassName

▸ getClassName(): string

Returns

string

Inherited from

AbstractSystem.getClassName


getDefaultModelLimits

▸ getDefaultModelLimits(): Rect

Gets the default minimal rectangular bounding region that will entirely contain this AbstractSystem (approximately). A CSR is an arbitrary complex closed region that touches the rectangular extent at least once on all four sides.

Returns

Rect

Inherited from

AbstractSystem.getDefaultModelLimits


getEpsgCode

▸ getEpsgCode(): number

Return epsg code of the coordinate system

Returns

number

epsg code

Inherited from

AbstractSystem.getEpsgCode


getName

▸ getName(): string

Return a name of the coordinate system

Returns

string

Inherited from

AbstractSystem.getName


getUnits

▸ getUnits(): AbstractUnit

Return units of the coordinate system

Returns

AbstractUnit

Inherited from

AbstractSystem.getUnits


inverseTransform

▸ inverseTransform(mercatorX, mercatorY, dst?, clamp?): Point

Return transformed point to lat / lng from projection

Parameters

Name Type Description
mercatorXnumberx coordinate
mercatorYnumbery coordinate
Optional dstPointoptional destination point
Optional clampbooleanif set to true, coordinate values will be clamped

Returns

Point

Overrides

AbstractSystem.inverseTransform


isVerticalAxisUp

▸ isVerticalAxisUp(): boolean

Return if vertical axis goes up

Returns

boolean

Inherited from

AbstractSystem.isVerticalAxisUp


transform

▸ transform(lon, lat, dst?, clamp?): Point

Transforms the specified coordinate to projection from lat / lng

Parameters

Name Type Description
lonnumberlong
latnumberlat
Optional dstPointoptional destination point
Optional clampbooleanif set to true, lat be limited by [-85, 85], lon: [-180, 180]

Returns

Point

Overrides

AbstractSystem.transform


getClassName

▸ Static getClassName(): string

Returns

string

Inherited from

AbstractSystem.getClassName