|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.nutiteq.maps.BaseMap
com.nutiteq.maps.projections.EPSG4326
com.nutiteq.maps.BaseKaMap
public abstract class BaseKaMap
| Constructor Summary | |
|---|---|
BaseKaMap(Copyright copyright,
int tileSize,
int[] scales,
int minZoom,
int maxZoom)
|
|
BaseKaMap(java.lang.String copyright,
int tileSize,
int[] scales,
int minZoom,
int maxZoom)
|
|
| Method Summary | |
|---|---|
int |
getMapHeight(int zoom)
Get map height for given zoom level. |
int |
getMapWidth(int zoom)
Get map width for given zoom level. |
TileMapBounds |
getTileMapBounds(int zoom)
Get map bounds for specified zoom level. |
Point |
mapPosToWgs(MapPos pos)
Convert a point on pixel map to WGS84 coordinates (decimal coordinates * 1000000) |
MapPos |
zoom(MapPos middlePoint,
int zoomSteps)
Handles zoom for display middle point (as default the red cross on screen) by assuming that map size between single zoom levels is always magnitude of two (next map size is two times smaller or bigger). |
MapPos |
wgsToMapPos(Point wgs,
int zoom)
Convert WGS84 coordinates to pixel point on map |
| Methods inherited from class com.nutiteq.maps.projections.EPSG4326 |
|---|
getRatio, setWidthHeightRatio |
| Methods inherited from class com.nutiteq.maps.BaseMap |
|---|
addTileOverlay, getCopyright, getInitializationTask, getMaxZoom, getMinZoom, getMissingTileImage, getZoomRange, getTileOverlay, getTileSize, setCopyright, setMissingTileImage |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.nutiteq.maps.GeoMap |
|---|
addTileOverlay, getCopyright, getInitializationTask, getMaxZoom, getMinZoom, getMissingTileImage, getZoomRange, getTileOverlay, getTileSize, setMissingTileImage |
| Constructor Detail |
|---|
public BaseKaMap(java.lang.String copyright,
int tileSize,
int[] scales,
int minZoom,
int maxZoom)
public BaseKaMap(Copyright copyright,
int tileSize,
int[] scales,
int minZoom,
int maxZoom)
| Method Detail |
|---|
public Point mapPosToWgs(MapPos pos)
Projection
mapPosToWgs in interface GeoMapmapPosToWgs in interface ProjectionmapPosToWgs in class EPSG4326pos - pixel point on the map (on 256x256 pixels map of the world 0E 0N
is located at map pixel 128x : 128y)
public MapPos wgsToMapPos(Point wgs,
int zoom)
Projection
wgsToMapPos in interface GeoMapwgsToMapPos in interface ProjectionwgsToMapPos in class EPSG4326wgs - WGS84 coordinates (decimal coordinates * 1000000)zoom - zoom level for the map
public int getMapHeight(int zoom)
BaseMap
getMapHeight in interface GeoMapgetMapHeight in class BaseMapzoom - zoom level for witch to get map height
public int getMapWidth(int zoom)
BaseMap
getMapWidth in interface GeoMapgetMapWidth in class BaseMapzoom - zoom level for witch to get map width
public MapPos zoom(MapPos middlePoint,
int zoomSteps)
BaseMapHandles zoom for display middle point (as default the red cross on screen) by assuming that map size between single zoom levels is always magnitude of two (next map size is two times smaller or bigger).
For example for OpenStreetMap zoom level 0 world size is 256x256 pixels and center point will be in 128x128. If zoomed in one level world size will be 512x512 pixels and center point will be at 256x256.
zoom in interface GeoMapzoom in class BaseMapmiddlePoint - map position on witch to perform zoom actionzoomSteps - zoom steps needed to handle
public TileMapBounds getTileMapBounds(int zoom)
BaseMap
getTileMapBounds in interface GeoMapgetTileMapBounds in class BaseMapzoom - zoom level for witch to get map bounds
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||