Winter Cardinal UI - v0.442.0 / DMapCoordinate

Interface: DMapCoordinate

Implemented by

Table of contents

Methods

Methods

getTileSize

getTileSize(): number

Returns

number

Defined in

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


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

Defined in

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


lonLatToPixels

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

Parameters

Name Type
lonlat DMapPoint
tz number
tileSize number
pixels DMapPoint

Returns

DMapPoint

Defined in

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


lonLatToTile

lonLatToTile(lonlat, tz, tile): DMapPoint

Parameters

Name Type
lonlat DMapPoint
tz number
tile DMapPoint

Returns

DMapPoint

Defined in

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


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

Defined in

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


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

Defined in

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


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

Defined in

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


pixelsToLonLat

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

Parameters

Name Type
pixels DMapPoint
tz number
tileSize number
lonlat DMapPoint

Returns

DMapPoint

Defined in

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


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

Defined in

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


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

Defined in

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


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

Defined in

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


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

Defined in

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


toTileCode

toTileCode(tz, tx, ty): number

Parameters

Name Type
tz number
tx number
ty number

Returns

number

Defined in

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


toTileCount

toTileCount(tz): number

Parameters

Name Type
tz number

Returns

number

Defined in

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