Class: IWParallelProjection

IWParallelProjection

A parallel projection used by the standard map views.

new IWParallelProjection(map)

Default constructor.
Parameters:
Name Type Description
map IWMap

Extends

Methods


calculateGridOffset()

Calculates the offset of the point (0, 0) to a position on the tile grid.
Overrides:
Returns:
the offset
Type
IWPoint

clone()

Returns a copy of this projection.
Inherited From:
Overrides:

generateTileInformation(x, y, gridOffset)

Generates information like the tile screen position, tile index and tile id for a pixel position.
Parameters:
Name Type Description
x number screen position of the tile
y number screen position of the tile
gridOffset IWPoint offset of (0, 0) to the tile grid
Overrides:
Returns:
Type
object

initialize(obj)

Initializes the projection object.
Parameters:
Name Type Description
obj Object
Overrides:
Returns:
Type
void

meterToPixel(coordinate)

Returns the pixel position for the given coordinate.
Parameters:
Name Type Description
coordinate IWCoordinate the given coordinate
Overrides:
Returns:
Type
IWPoint

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.
Parameters:
Name Type Description
size IWSize the size of the visible part of the map in pixels
Overrides:
Returns:
Type
boolean

pixelToMeter(point)

Returns the coordinate for the given pixel position.
Parameters:
Name Type Description
point IWPoint the pixel position
Overrides:
Returns:
Type
IWCoordinate

toString()

Returns a string representation of the parallel projection.
Overrides:
Returns:
Type
String