Winter Cardinal UI - v0.442.0 / DMapCoordinateEPSG3857

Class: DMapCoordinateEPSG3857

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new DMapCoordinateEPSG3857(tileSize?): DMapCoordinateEPSG3857

Parameters

Name Type Default value
tileSize number 256

Returns

DMapCoordinateEPSG3857

Defined in

src/main/typescript/wcardinal/ui/d-map-coordinate-epsg3857.ts:13

Properties

_tileSize

Protected _tileSize: number

Defined in

src/main/typescript/wcardinal/ui/d-map-coordinate-epsg3857.ts:11


CIRCUMFERENCE_HALF

Static Protected CIRCUMFERENCE_HALF: number

Defined in

src/main/typescript/wcardinal/ui/d-map-coordinate-epsg3857.ts:9

Methods

getTileSize

getTileSize(): number

Returns

number

Implementation of

DMapCoordinate.getTileSize

Defined in

src/main/typescript/wcardinal/ui/d-map-coordinate-epsg3857.ts:17


lonLatToMeters

lonLatToMeters(lonlat, meters): DMapPoint

Converts the given (lon, lat) point in WGS84 to (x, y) in EPSG:900913. The origin of the converted point (x, y) is at the middle-left corner. The meters can be the same instance that is passed in as the lonlat.

Parameters

Name Type Description
lonlat DMapPoint (lon, lat) point
meters DMapPoint (x, y) point in meters converted from the given lonlat.

Returns

DMapPoint

(x, y) point in meters

See

Implementation of

DMapCoordinate.lonLatToMeters

Defined in

src/main/typescript/wcardinal/ui/d-map-coordinate-epsg3857.ts:32


lonLatToPixels

lonLatToPixels(lonlat, tz, tileSize, pixels): DMapPoint

Parameters

Name Type
lonlat DMapPoint
tz number
tileSize number
pixels DMapPoint

Returns

DMapPoint

Implementation of

DMapCoordinate.lonLatToPixels

Defined in

src/main/typescript/wcardinal/ui/d-map-coordinate-epsg3857.ts:105


lonLatToTile

lonLatToTile(lonlat, tz, tile): DMapPoint

Parameters

Name Type
lonlat DMapPoint
tz number
tile DMapPoint

Returns

DMapPoint

Implementation of

DMapCoordinate.lonLatToTile

Defined in

src/main/typescript/wcardinal/ui/d-map-coordinate-epsg3857.ts:101


metersToLonLat

metersToLonLat(meters, lonlat): DMapPoint

The lonlat can be the same instance that is passed in as the meters.

Parameters

Name Type
meters DMapPoint
lonlat DMapPoint

Returns

DMapPoint

Implementation of

DMapCoordinate.metersToLonLat

Defined in

src/main/typescript/wcardinal/ui/d-map-coordinate-epsg3857.ts:45


metersToPixels

metersToPixels(meters, tz, tileSize, pixels): DMapPoint

Converts EPSG:900913 to pyramid pixel coordinates in given zoom level. The origin of the pixels is the top-left corner. The pixels can be the same instance that is passed in as the meters.

Parameters

Name Type
meters DMapPoint
tz number
tileSize number
pixels DMapPoint

Returns

DMapPoint

Implementation of

DMapCoordinate.metersToPixels

Defined in

src/main/typescript/wcardinal/ui/d-map-coordinate-epsg3857.ts:70


metersToTile

metersToTile(meters, tz, tile): DMapPoint

The origin of the tile is the top-left corner. The tile can be the same instance that is passed in as the meters.

Parameters

Name Type
meters DMapPoint
tz number
tile DMapPoint

Returns

DMapPoint

Implementation of

DMapCoordinate.metersToTile

Defined in

src/main/typescript/wcardinal/ui/d-map-coordinate-epsg3857.ts:93


pixelsToLonLat

pixelsToLonLat(pixels, tz, tileSize, lonlat): DMapPoint

Parameters

Name Type
pixels DMapPoint
tz number
tileSize number
lonlat DMapPoint

Returns

DMapPoint

Implementation of

DMapCoordinate.pixelsToLonLat

Defined in

src/main/typescript/wcardinal/ui/d-map-coordinate-epsg3857.ts:109


pixelsToMeters

pixelsToMeters(pixels, tz, tileSize, meters): DMapPoint

Converts pixel coordinates in given zoom level of pyramid to EPSG:900913. The origin of the pixels is the top-left corner. The meters can be the same instance that is passed in as the pixels.

Parameters

Name Type
pixels DMapPoint
tz number
tileSize number
meters DMapPoint

Returns

DMapPoint

Implementation of

DMapCoordinate.pixelsToMeters

Defined in

src/main/typescript/wcardinal/ui/d-map-coordinate-epsg3857.ts:57


pixelsToTile

pixelsToTile(pixels, tileSize, tile): DMapPoint

Returns a tile covering region in given pixel coordinates. The origin of the tile is the top-left corner. The tile can be the same instance that is passed in as the pixels.

Parameters

Name Type
pixels DMapPoint
tileSize number
tile DMapPoint

Returns

DMapPoint

Implementation of

DMapCoordinate.pixelsToTile

Defined in

src/main/typescript/wcardinal/ui/d-map-coordinate-epsg3857.ts:83


tileToMeters

tileToMeters(tile, tz, meters): DMapPoint

Returns bounds of the given tile in EPSG:900913 coordinates The meters can be the same instance that is passed in as the tile.

Parameters

Name Type
tile DMapPoint
tz number
meters DMapPoint

Returns

DMapPoint

Implementation of

DMapCoordinate.tileToMeters

Defined in

src/main/typescript/wcardinal/ui/d-map-coordinate-epsg3857.ts:126


tileToPixels

tileToPixels(tile, tileSize, pixels): DMapPoint

The pixels can be the same instance that is passed in as the tile.

Parameters

Name Type
tile DMapPoint
tileSize number
pixels DMapPoint

Returns

DMapPoint

Implementation of

DMapCoordinate.tileToPixels

Defined in

src/main/typescript/wcardinal/ui/d-map-coordinate-epsg3857.ts:116


toResolution

toResolution(tz, tileSize): number

Parameters

Name Type
tz number
tileSize number

Returns

number

Defined in

src/main/typescript/wcardinal/ui/d-map-coordinate-epsg3857.ts:138


toResolutionMeter

toResolutionMeter(tz): number

Parameters

Name Type
tz number

Returns

number

Defined in

src/main/typescript/wcardinal/ui/d-map-coordinate-epsg3857.ts:134


toTileCode

toTileCode(tz, tx, ty): number

Parameters

Name Type
tz number
tx number
ty number

Returns

number

Implementation of

DMapCoordinate.toTileCode

Defined in

src/main/typescript/wcardinal/ui/d-map-coordinate-epsg3857.ts:146


toTileCount

toTileCount(tz): number

Parameters

Name Type
tz number

Returns

number

Implementation of

DMapCoordinate.toTileCount

Defined in

src/main/typescript/wcardinal/ui/d-map-coordinate-epsg3857.ts:142