Class MMMercatorProjection
Object
|
+--MMProjection
|
+--MMMercatorProjection
- class
MMMercatorProjection
- extends MMProjection
Defined in MultimapOpenAPI
|
Constructor Summary |
MMMercatorProjection
( <integer> zoom_factors, type )
Constructor for MMMercatorProjection, should be over-ridden.
|
|
Method Summary |
Object
|
checkTileRange( <MMPoint> tile, <integer> zoom_factor, <integer> tile_size )
Checks whether the given tile coordinates are valid for the projection.
|
MMPoint
|
fromLatLonToMeters( latlon )
Converts lat/lon to Mercator Eastings/Northings.
|
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
|
fromMetersToLatLon( meters )
Converts Mercator eastings/northings to lon/lat.
|
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.
|
Object
|
getWrapWidth( <integer> zoom_factor )
Returns the number of pixels after which the map repeats itself because it has wrapped around the earth.
|
MMMercatorProjection
MMMercatorProjection( <integer> zoom_factors, type )
Constructor for MMMercatorProjection, should be over-ridden.
Parameters:
zoom_factors - The number of zoom factors you want this projection to work over.
checkTileRange
Object checkTileRange( <MMPoint> tile, <integer> zoom_factor, <integer> tile_size )
Checks whether the given tile coordinates are valid for the projection. It may also modify the coordinates of the tile to allow wrapping of tiles.
Parameters:
tile - Coordinates of a tile.
zoom_factor - The zoom factor to check the tile at.
tile_size - The size of the tile.
fromLatLonToMeters
MMPoint fromLatLonToMeters( latlon )
Converts lat/lon to Mercator Eastings/Northings.
Parameters:
lonlat - Latitude and longitude to convert.
Returns:
Mercator Eastings/Northings stored in an MMPoint.
fromLatLonToPixel
MMPoint fromLatLonToPixel( <MMLatLon> pos, <integer> zoom_factor )
Returns map coordinates in pixels for a point with the given coordinates, at the specified zoom factor.
Parameters:
pos - Geographic position of the point.
zoom_factor - The zoom factor at which you want the pixels returned.
fromMetersToLatLon
MMLatLon fromMetersToLatLon( meters )
Converts Mercator eastings/northings to lon/lat.
Parameters:
Eastings - /Northings stored in an MMPoint
Returns:
Latitude and longitude of the given location.
fromPixelToLatLon
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.
Parameters:
pixel - Pixel position of the point.
zoom_factor - The zoom factor at which you want the coordinates returned.
getWrapWidth
Object getWrapWidth( <integer> zoom_factor )
Returns the number of pixels after which the map repeats itself because it has wrapped around the earth.
Parameters:
zoom_factor - The zoom factor to check.
Documentation generated by
JSDoc on Tue Feb 26 16:25:19 2008