Package org.jxmapviewer.viewer.bmng
Class CylindricalProjectionTileFactory
java.lang.Object
org.jxmapviewer.viewer.TileFactory
org.jxmapviewer.viewer.AbstractTileFactory
org.jxmapviewer.viewer.DefaultTileFactory
org.jxmapviewer.viewer.bmng.CylindricalProjectionTileFactory
public class CylindricalProjectionTileFactory extends DefaultTileFactory
-
Constructor Summary
Constructors Constructor Description CylindricalProjectionTileFactory(TileFactoryInfo info) -
Method Summary
Modifier and Type Method Description java.awt.geom.Point2DgeoToPixel(GeoPosition c, int zoom)Convert a GeoPosition to a pixel position in the world bitmap a the specified zoom level.GeoPositionpixelToGeo(java.awt.geom.Point2D pix, int zoom)Convert a pixel in the world bitmap at the specified zoom level into a GeoPositionMethods inherited from class org.jxmapviewer.viewer.AbstractTileFactory
addCustomRequestProperties, createTileRunner, dispose, getPendingTiles, getService, getTile, getTileCache, promote, setLocalCache, setThreadPoolSize, setTileCache, setUserAgent, startLoadingMethods inherited from class org.jxmapviewer.viewer.TileFactory
addTileListener, fireTileLoadedEvent, getInfo, getMapSize, getTileSize, removeTileListener
-
Constructor Details
-
CylindricalProjectionTileFactory
- Parameters:
info- the tile factory info
-
-
Method Details
-
geoToPixel
Description copied from class:TileFactoryConvert a GeoPosition to a pixel position in the world bitmap a the specified zoom level.- Overrides:
geoToPixelin classTileFactory- Parameters:
c- a GeoPositionzoom- the zoom level to extract the pixel coordinate for- Returns:
- the pixel point
-
pixelToGeo
Description copied from class:TileFactoryConvert a pixel in the world bitmap at the specified zoom level into a GeoPosition- Overrides:
pixelToGeoin classTileFactory- Parameters:
pix- a Point2D representing a pixel in the world bitmapzoom- the zoom level of the world bitmap- Returns:
- the converted GeoPosition
-