Class IWProjection

An interface which has to be implemented by all map projections. A projection is used by the map to convert from pixel space to map coordinates and vice versa.


Constructor Summary
IWProjection()
            Default constructor.
 
Method Summary
 IWPoint calculateGridOffset(map)
           Calculates the offset of the point (0, 0) to a position on the tile grid.
clone()
           Returns a copy of this projection.
 object generateTileInformation(x, y, gridOffset)
           Generates information like the tile screen position, tile index and tile id for a pixel position.
 void initialize(xmlDocument)
           Initializes the projection parameters from a XML document.
 IWPoint meterToPixel(coord)
           Returns the offset in pixels of the specified coordinate to the map center.
 boolean needsReload(size)
           Checks whether the map has to be reloaded completely to display the specified region.
 IWCoordinate pixelToMeter(offset)
           Returns the coordinate of the current map center plus the specified offset in pixels.
 String toString()
           Returns a text representation of this projection.
 
Constructor Detail

IWProjection

IWProjection()

Method Detail

calculateGridOffset

IWPoint calculateGridOffset(map)

clone

clone()

generateTileInformation

object generateTileInformation(x, y, gridOffset)

initialize

void initialize(xmlDocument)

meterToPixel

IWPoint meterToPixel(coord)

needsReload

boolean needsReload(size)

pixelToMeter

IWCoordinate pixelToMeter(offset)

toString

String toString()

Source-Code Copyright 2007-2016 infoware GmbH - Documentation generated on Tue Nov 29 2022 14:20:15 GMT+0100 (MEZ)