SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A parallel projection used by the standard map views.
Constructor Summary | |
IWParallelProjection(map)
Default constructor. |
Method Summary | |
IWPoint
|
calculateGridOffset()
Calculates the offset of the point (0, 0) to a position on the tile grid. |
|
clone()
undocumented |
object
|
generateTileInformation(x, y, gridOffset)
Generates information like the tile screen position, tile index and tile id for a pixel position. |
void
|
initialize(obj)
Initializes the projection object. |
IWPoint
|
meterToPixel(coordinate)
Returns the pixel position for the given coordinate. |
boolean
|
needsReload(size)
Checks whether the map has to be reloaded completely to display the specified region. This is always false for map types with parallel projections. |
IWCoordinate
|
pixelToMeter(point)
Returns the coordinate for the given pixel position. |
String
|
toString()
Returns a string representation of the parallel projection. |
Constructor Detail |
IWParallelProjection(map)
IWMap map
Method Detail |
IWPoint calculateGridOffset()
IWPoint
the offset
clone()
object generateTileInformation(x, y, gridOffset)
number x
- screen position of the tile
number y
- screen position of the tile
IWPoint gridOffset
- offset of (0, 0) to the tile grid
object
void initialize(obj)
Object obj
void
IWPoint meterToPixel(coordinate)
IWCoordinate coordinate
- the given coordinate
IWPoint
boolean needsReload(size)
IWSize size
- the size of the visible part of the map in pixels
boolean
IWCoordinate pixelToMeter(point)
IWPoint point
- the pixel position
IWCoordinate
String toString()
String