Winter Cardinal UI - v0.442.0 / DMapCoordinate
▸ getTileSize(): number
number
src/main/typescript/wcardinal/ui/d-map-coordinate.ts:12
▸ 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
.
Name | Type | Description |
---|---|---|
lonlat |
DMapPoint |
(lon, lat) point |
meters |
DMapPoint |
(x, y) point in meters converted from the given lonlat. |
(x, y) point in meters
See
src/main/typescript/wcardinal/ui/d-map-coordinate.ts:25
▸ lonLatToPixels(lonlat
, tz
, tileSize
, pixels
): DMapPoint
Name | Type |
---|---|
lonlat |
DMapPoint |
tz |
number |
tileSize |
number |
pixels |
DMapPoint |
src/main/typescript/wcardinal/ui/d-map-coordinate.ts:64
▸ lonLatToTile(lonlat
, tz
, tile
): DMapPoint
Name | Type |
---|---|
lonlat |
DMapPoint |
tz |
number |
tile |
DMapPoint |
src/main/typescript/wcardinal/ui/d-map-coordinate.ts:62
▸ metersToLonLat(meters
, lonlat
): DMapPoint
The lonlat
can be the same instance that is passed in as the meters
.
Name | Type |
---|---|
meters |
DMapPoint |
lonlat |
DMapPoint |
src/main/typescript/wcardinal/ui/d-map-coordinate.ts:33
▸ 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
.
Name | Type |
---|---|
meters |
DMapPoint |
tz |
number |
tileSize |
number |
pixels |
DMapPoint |
src/main/typescript/wcardinal/ui/d-map-coordinate.ts:47
▸ 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
.
Name | Type |
---|---|
meters |
DMapPoint |
tz |
number |
tile |
DMapPoint |
src/main/typescript/wcardinal/ui/d-map-coordinate.ts:60
▸ pixelsToLonLat(pixels
, tz
, tileSize
, lonlat
): DMapPoint
Name | Type |
---|---|
pixels |
DMapPoint |
tz |
number |
tileSize |
number |
lonlat |
DMapPoint |
src/main/typescript/wcardinal/ui/d-map-coordinate.ts:66
▸ 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
.
Name | Type |
---|---|
pixels |
DMapPoint |
tz |
number |
tileSize |
number |
meters |
DMapPoint |
src/main/typescript/wcardinal/ui/d-map-coordinate.ts:40
▸ 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
.
Name | Type |
---|---|
pixels |
DMapPoint |
tileSize |
number |
tile |
DMapPoint |
src/main/typescript/wcardinal/ui/d-map-coordinate.ts:54
▸ 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
.
Name | Type |
---|---|
tile |
DMapPoint |
tz |
number |
meters |
DMapPoint |
src/main/typescript/wcardinal/ui/d-map-coordinate.ts:77
▸ tileToPixels(tile
, tileSize
, pixels
): DMapPoint
The pixels
can be the same instance that is passed in as the tile
.
Name | Type |
---|---|
tile |
DMapPoint |
tileSize |
number |
pixels |
DMapPoint |
src/main/typescript/wcardinal/ui/d-map-coordinate.ts:71
▸ toTileCode(tz
, tx
, ty
): number
Name | Type |
---|---|
tz |
number |
tx |
number |
ty |
number |
number
src/main/typescript/wcardinal/ui/d-map-coordinate.ts:81
▸ toTileCount(tz
): number
Name | Type |
---|---|
tz |
number |
number