com.nutiteq.maps
Class SimpleWMSMap

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

public class SimpleWMSMap
extends EPSG4326
implements GeoMap, UnstreamedMap

Simple WMS map implementation using EPSG4326 projection for WMS version 1.1.1. Creates a WMS request for every needed tile.


Constructor Summary
SimpleWMSMap(java.lang.String baseurl, int tileSize, int minZoom, int maxZoom, java.lang.String layer, java.lang.String format, java.lang.String style, java.lang.String request, Copyright copyright)
           
SimpleWMSMap(java.lang.String baseurl, int tileSize, int minZoom, int maxZoom, java.lang.String layer, java.lang.String format, java.lang.String style, java.lang.String request, java.lang.String copyright)
          Constructor for the simple WMS implementation
 
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.projections.EPSG4326
getRatio, mapPosToWgs, setWidthHeightRatio, wgsToMapPos
 
Methods inherited from class com.nutiteq.maps.BaseMap
addTileOverlay, getCopyright, getInitializationTask, getMapHeight, getMapWidth, getMaxZoom, getMinZoom, getMissingTileImage, getZoomRange, getTileMapBounds, getTileOverlay, getTileSize, setCopyright, setMissingTileImage, zoom
 
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, getMapHeight, getMapWidth, getMaxZoom, getMinZoom, getMissingTileImage, getZoomRange, getTileMapBounds, getTileOverlay, getTileSize, mapPosToWgs, setMissingTileImage, zoom, wgsToMapPos
 

Constructor Detail

SimpleWMSMap

public SimpleWMSMap(java.lang.String baseurl,
                    int tileSize,
                    int minZoom,
                    int maxZoom,
                    java.lang.String layer,
                    java.lang.String format,
                    java.lang.String style,
                    java.lang.String request,
                    java.lang.String copyright)
Constructor for the simple WMS implementation

Parameters:
baseurl - base URL for the service
tileSize - map tile size
minZoom - minimum zoom for the map
maxZoom - maximum zoom for the map
layer - LAYERS parameter
format - FORMAT parameter
style - STYLE parameter
request - REQUEST parameter
copyright - copyright string displayed on map

SimpleWMSMap

public SimpleWMSMap(java.lang.String baseurl,
                    int tileSize,
                    int minZoom,
                    int maxZoom,
                    java.lang.String layer,
                    java.lang.String format,
                    java.lang.String style,
                    java.lang.String request,
                    Copyright copyright)
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. For on-line URL must start with "http://" or "https://"; for filesystem starts with "file://"; for application package resource starts with "/"