- Legend to Symbols

-
Class nokia.maps.geo.PixelProjection
Class Summary
This class provide translations between projected pixel coordinates and geographical coordinates (longitude and latitude).
new nokia.maps.geo.PixelProjection
(projection, width, height, [offsetX, [offsetY]])
Method Summary
geoToPixel
(coord)
: nokia.maps.util.Point
This method translates an object containing geographical coordinates (latitude, longitude) into a point defined in terms of pixel coordinates.
latLngToPixel
(latitude, longitude)
: nokia.maps.util.Point
This method translates geographical coordinates (latitude, longitude) supplied by the caller into a point defined in terms of pixel coordinates.
pixelToGeo
(pixel)
: nokia.maps.geo.Coordinate
This method translates a projected point object containing the pixel coordinates of a location into an object defining the location in terms of its latitude and longitude.
pixelToPoint
(pixel)
: nokia.maps.util.Point
This method translates a projected pixel coordinates of a point into a projected point.
pointToPixel
(point)
: nokia.maps.util.Point
This method translates a projected point into a point defined in terms of pixel coordinates.
xyToGeo
(x, y)
: nokia.maps.geo.Coordinate
This method translates projected pixel coordinates of a location into an object defining the location in terms of its latitude and longitude.
xyToPixel
(x, y)
: nokia.maps.util.Point
This method translates a projected point into a point defined in terms of pixel coordinates.
xyToPoint
(x, y)
: nokia.maps.util.Point
This method translates projected pixel coordinates into a projected point.
Field Summary
Constructor Detail
This class provide translations between projected pixel coordinates and geographical coordinates (longitude and latitude).
new nokia.maps.geo.PixelProjection(projection, width, height, [offsetX, [offsetY]])
Parameters:
| {nokia.maps.geo.IProjection} | projection | The underlying projection |
| {Number} | width | The width of the projected world in pixels |
| {Object} | height | The height of the projected world in pixels |
| {Object} | [offsetX]: 0 | A optional offset on the x axis in pixels |
| {Object} | [offsetY]: 0 | A optional offset on the y axis in pixel |
Method Detail
geoToPixel
(coord)
: nokia.maps.util.Point
This method translates an object containing geographical coordinates
(latitude, longitude)
into a point defined in terms of pixel coordinates.
Parameters:
| {nokia.maps.geo.ICoordinate} | coord | An object containing geographical coordinates to translate |
Returns:
| {nokia.maps.util.Point} | A point object containing x and y coordinates (in pixels) |
latLngToPixel
(latitude, longitude)
: nokia.maps.util.Point
This method translates geographical coordinates (latitude, longitude)
supplied by the caller
into a point defined in terms of pixel coordinates.
Parameters:
| {Number} | latitude | The latitude to translate |
| {Number} | longitude | The longitude to translate |
Returns:
| {nokia.maps.util.Point} | A point object containing x and y coordinates (in pixels) |
pixelToGeo
(pixel)
: nokia.maps.geo.Coordinate
This method translates a projected point object containing the pixel coordinates
of a location into an object defining the location in terms of its latitude and
longitude.
Parameters:
| {nokia.maps.util.IPoint} | pixel | The projected point to translate |
Returns:
| {nokia.maps.geo.Coordinate} | An object representing a location defined in terms of the geographic coordinates latitude and longitude |
pixelToPoint
(pixel)
: nokia.maps.util.Point
This method translates a projected pixel coordinates of a point into a projected point.
Parameters:
| {nokia.maps.util.IPoint} | pixel | projected point with pixel coordinates to translate |
Returns:
| {nokia.maps.util.Point} | A projected point object containing x and y coordinates |
pointToPixel
(point)
: nokia.maps.util.Point
This method translates a projected point into a point defined in terms of
pixel coordinates.
Parameters:
| {nokia.maps.util.IPoint} | point | An object representing a projected point to translate |
Returns:
| {nokia.maps.util.Point} | A point object containing x and y coordinates (in pixels) |
xyToGeo
(x, y)
: nokia.maps.geo.Coordinate
This method translates projected pixel coordinates of a location
into an object defining the location in terms of its latitude and longitude.
Parameters:
| {Number} | x | The x coordinate of the projected point to translate |
| {Number} | y | The y coordinate of the projected point to translate |
Returns:
| {nokia.maps.geo.Coordinate} | An object representing a location defined in terms of the geographic coordinates latitude and longitude |
xyToPixel
(x, y)
: nokia.maps.util.Point
This method translates a projected point into a point defined in terms of
pixel coordinates.
Parameters:
| {Number} | x | The x coordinate of a projected point to translate |
| {Number} | y | The y coordinate of a projected point to translate |
Returns:
| {nokia.maps.util.Point} | A point object containing x and y coordinates (in pixels) |
xyToPoint
(x, y)
: nokia.maps.util.Point
This method translates projected pixel coordinates into a projected point.
Parameters:
| {Number} | x | The x (pixel) coordiante of the projected point to translate. |
| {Number} | y | The y (pixel) coordiante of the projected point to translate. |
Returns:
| {nokia.maps.util.Point} | A projected point object containing x and y coordinates |
Field Detail