|
|||||||||
| 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.UnstreamedDoubleSizedTilesMap
public class UnstreamedDoubleSizedTilesMap
| Constructor Summary | |
|---|---|
UnstreamedDoubleSizedTilesMap(GeoMap resizedMap)
Resizes ("zooms in") all map images for the map, exactly 2 times |
|
UnstreamedDoubleSizedTilesMap(GeoMap resizedMap,
boolean resizeOnlyLastLevel)
Digitally zooms map images for the map |
|
| Method Summary | |
|---|---|
void |
addTileOverlay(MapTileOverlay overlay)
Add overlay for displaying tiles with additional data on map tiles. |
java.lang.String |
buildPath(int mapX,
int mapY,
int zoom)
Build path for the tile image. |
Copyright |
getCopyright()
Map copyright string painted on screen |
int |
getMapHeight(int zoom)
Get map height for given zoom level. |
int |
getMapWidth(int zoom)
Get map width for given zoom level. |
int |
getMaxZoom()
Maximum zoom level for implementing map. |
int |
getMinZoom()
Minimum zoom level for implementing map. |
com.nutiteq.wrappers.Image |
getMissingTileImage()
Get image used for showing missing image. |
ZoomRange |
getZoomRange()
Get zoom range for the map |
MapTileOverlay |
getTileOverlay()
Get overlay used for map |
int |
getTileSize()
Get tile size for implemented map |
Point |
mapPosToWgs(MapPos pos)
Convert a point on pixel map to WGS84 coordinates (decimal coordinates * 1000000) |
void |
setMissingTileImage(com.nutiteq.wrappers.Image missingTile)
Set image used for missing tiles |
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.BaseMap |
|---|
getInitializationTask, getTileMapBounds, setCopyright |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.nutiteq.maps.GeoMap |
|---|
getInitializationTask, getTileMapBounds |
| Constructor Detail |
|---|
public UnstreamedDoubleSizedTilesMap(GeoMap resizedMap)
resizedMap - Map which will be used as resized map, could be any map service of library
public UnstreamedDoubleSizedTilesMap(GeoMap resizedMap,
boolean resizeOnlyLastLevel)
resizedMap - Map which will be used as resized map, could be any map service of libraryresizeOnlyLastLevel - If true then enable to "digitally zoom" last map level only, otherwise zoom all maps.| Method Detail |
|---|
public void addTileOverlay(MapTileOverlay overlay)
GeoMap
addTileOverlay in interface GeoMapaddTileOverlay in class BaseMapoverlay - overlay to be used for additional datapublic Copyright getCopyright()
GeoMap
getCopyright in interface GeoMapgetCopyright in class BaseMappublic 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 int getMaxZoom()
GeoMap
getMaxZoom in interface GeoMapgetMaxZoom in class BaseMappublic int getMinZoom()
GeoMap
getMinZoom in interface GeoMapgetMinZoom in class BaseMappublic com.nutiteq.wrappers.Image getMissingTileImage()
GeoMap
getMissingTileImage in interface GeoMapgetMissingTileImage in class BaseMappublic MapTileOverlay getTileOverlay()
GeoMap
getTileOverlay in interface GeoMapgetTileOverlay in class BaseMappublic int getTileSize()
GeoMap
getTileSize in interface GeoMapgetTileSize in class BaseMappublic ZoomRange getZoomRange()
GeoMap
getZoomRange in interface GeoMapgetZoomRange in class BaseMappublic Point mapPosToWgs(MapPos pos)
GeoMap
mapPosToWgs in interface GeoMappos - pixel point on the map (on 256x256 pixels map of the world 0E 0N
is located at map pixel 128x : 128y)
public void setMissingTileImage(com.nutiteq.wrappers.Image missingTile)
GeoMap
setMissingTileImage in interface GeoMapsetMissingTileImage in class BaseMapmissingTile - image used
public MapPos wgsToMapPos(Point wgs,
int zoom)
GeoMap
wgsToMapPos in interface GeoMapwgs - WGS84 coordinates (decimal coordinates * 1000000)zoom - zoom level for the map
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 java.lang.String buildPath(int mapX,
int mapY,
int zoom)
UnstreamedMap
buildPath in interface UnstreamedMapmapX - tile top-left corner x on pixel mapmapY - tile top-left corner x on pixel mapzoom - zoom level
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||