com.nutiteq.maps
Class KaMap

java.lang.Object
  extended by com.nutiteq.maps.BaseMap
      extended by com.nutiteq.maps.projections.EPSG4326
          extended by com.nutiteq.maps.BaseKaMap
              extended by com.nutiteq.maps.KaMap
All Implemented Interfaces:
GeoMap, Projection, UnstreamedMap

public class KaMap
extends BaseKaMap
implements UnstreamedMap

Map type to be used with standard OpenLayers kaMap layer


Constructor Summary
KaMap(java.lang.String baseurl, java.lang.String copyright, java.lang.String group, java.lang.String imageFormat, java.lang.String layerName, int tileSize, int[] scales, int minZoom, int maxZoom)
           
 
Method Summary
 java.lang.String buildPath(int mapX, int mapY, int zoom)
          Build path for the tile image.
 
Methods inherited from class com.nutiteq.maps.BaseKaMap
getMapHeight, getMapWidth, getTileMapBounds, mapPosToWgs, zoom, wgsToMapPos
 
Methods inherited from class com.nutiteq.maps.projections.EPSG4326
getRatio, setWidthHeightRatio
 
Methods inherited from class com.nutiteq.maps.BaseMap
addTileOverlay, getCopyright, 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, getMaxZoom, getMinZoom, getMissingTileImage, getZoomRange, getTileOverlay, getTileSize, setMissingTileImage
 

Constructor Detail

KaMap

public KaMap(java.lang.String baseurl,
             java.lang.String copyright,
             java.lang.String group,
             java.lang.String imageFormat,
             java.lang.String layerName,
             int tileSize,
             int[] scales,
             int minZoom,
             int maxZoom)
Parameters:
baseurl - URL of tile.php
copyright - Map copyright string displayed on screen
group - displayed layer group
imageFormat - tile image format
layerName - Layer name
tileSize - map tile size
scales - used scales
minZoom - map min zoom
maxZoom - map max zoom
Method Detail

buildPath

public java.lang.String buildPath(int mapX,
                                  int mapY,
                                  int zoom)
Description copied from interface: UnstreamedMap
Build path for the tile image. Images reading from network and application jar is supported.

Specified by:
buildPath in interface UnstreamedMap
Parameters:
mapX - tile top-left corner x on pixel map
mapY - tile top-left corner x on pixel map
zoom - zoom level
Returns:
path for the tile image. Could be URL, file path or jar resource path