Class MMProjection

Object
   |
   +--MMProjection
Direct Known Subclasses:
MMMercatorProjection

class MMProjection



Defined in MultimapAPI


Constructor Summary
MMProjection ( <integer> zoom_factors )
            An abstract class, the methods of which should be overridden to be used by an MMMapType.
 
Method Summary
 void checkTileRange( <MMPoint> tile, <integer> zoom_factor, tilesize )
           Checks whether the given tile coordinates are valid for the projection.
 boolean checkValidZoomFactor( <integer> zoom_factor, <integer> zoom_factors )
           Checks whether the given zoom factor is valid for the given value of zoom factors.
 MMPoint fromLatLonToPixel( <MMLatLon> pos, <integer> zoom_factor )
           Returns map coordinates in pixels for a point with the given coordinates, at the specified zoom factor.
 MMLatLon fromPixelToLatLon( <MMPoint> pixel, <integer> zoom_factor, unbounded )
           Returns map coordinates in lat/lon for a point with the given coordinates in pixels, at the specified zoom factor.
 MMPoint getAxisMultiplier()
           Custom map tiles are numbered from 0,0 in the top left with numbers increasing to the right and downwards.
 void getWrapWidth( <integer> zoom_factor )
           Returns the number of pixels after which the map repeats itself because it has wrapped around the earth.

Constructor Detail

MMProjection

MMProjection( <integer> zoom_factors )

Method Detail

checkTileRange

void checkTileRange( <MMPoint> tile, <integer> zoom_factor, tilesize )

checkValidZoomFactor

boolean checkValidZoomFactor( <integer> zoom_factor, <integer> zoom_factors )

fromLatLonToPixel

MMPoint fromLatLonToPixel( <MMLatLon> pos, <integer> zoom_factor )

fromPixelToLatLon

MMLatLon fromPixelToLatLon( <MMPoint> pixel, <integer> zoom_factor, unbounded )

getAxisMultiplier

MMPoint getAxisMultiplier()

getWrapWidth

void getWrapWidth( <integer> zoom_factor )


Documentation generated by JSDoc on Tue Jun 30 13:55:23 2009