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, startLoadingaddTileListener, fireTileLoadedEvent, getInfo, getTileSize, removeTileListenerpublic CylindricalProjectionTileFactory()
SLMapServerInfopublic CylindricalProjectionTileFactory(SLMapServerInfo info)
info - the tile factory infopublic Dimension getMapSize(int zoom)
TileFactorygetMapSize in class TileFactoryzoom - the current zoom levelpublic Point2D geoToPixel(GeoPosition c, int zoom)
TileFactorygeoToPixel in class TileFactoryc - a GeoPositionzoom - the zoom level to extract the pixel coordinate forpublic GeoPosition pixelToGeo(Point2D pix, int zoom)
TileFactorypixelToGeo in class TileFactorypix - a Point2D representing a pixel in the world bitmapzoom - the zoom level of the world bitmapCopyright © 2014. All Rights Reserved.