public class CylindricalProjectionTileFactory extends DefaultTileFactory
Constructor and Description |
---|
CylindricalProjectionTileFactory()
Uses
SLMapServerInfo |
CylindricalProjectionTileFactory(SLMapServerInfo info) |
Modifier and Type | Method and Description |
---|---|
Point2D |
geoToPixel(GeoPosition c,
int zoom)
Convert a GeoPosition to a pixel position in the world bitmap a the specified zoom level.
|
Dimension |
getMapSize(int zoom)
Returns a Dimension containing the width and height of the map, in tiles at the current zoom level.
|
GeoPosition |
pixelToGeo(Point2D pix,
int zoom)
Convert a pixel in the world bitmap at the specified zoom level into a GeoPosition
|
createTileRunner, dispose, getService, getTile, getTileCache, promote, setThreadPoolSize, setTileCache, startLoading
addTileListener, fireTileLoadedEvent, getInfo, getTileSize, removeTileListener
public CylindricalProjectionTileFactory()
SLMapServerInfo
public CylindricalProjectionTileFactory(SLMapServerInfo info)
info
- the tile factory infopublic Dimension getMapSize(int zoom)
TileFactory
getMapSize
in class TileFactory
zoom
- the current zoom levelpublic Point2D geoToPixel(GeoPosition c, int zoom)
TileFactory
geoToPixel
in class TileFactory
c
- a GeoPositionzoom
- the zoom level to extract the pixel coordinate forpublic GeoPosition pixelToGeo(Point2D pix, int zoom)
TileFactory
pixelToGeo
in class TileFactory
pix
- a Point2D representing a pixel in the world bitmapzoom
- the zoom level of the world bitmapCopyright © 2013. All Rights Reserved.