com.maryanovsky.map.client
Class Map

java.lang.Object
  extended by com.maryanovsky.map.client.Map

public class Map
extends Object

Represents a map, which is a stack of TileLayers.

Author:
Maryanovsky Alexander

Constructor Summary
Map(Projection projection, List tileLayers, int minZoom, int maxZoom)
          Creates a new Map with the specified projection, stack of tile layers and zoom range.
Map(Projection projection, TileLayer tileLayer, int minZoom, int maxZoom)
          Creates a new Map with the specified projection, tile layer and zoom range.
 
Method Summary
 List getLayers()
          Returns the stack of {linkplain TileLayer}s in this map.
 int getMaxZoom()
          Returns the biggest available zoom for this Map.
 int getMinZoom()
          Returns the smallest available zoom for this Map.
 Projection getProjection()
          Returns the projection of this map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Map

public Map(Projection projection,
           List tileLayers,
           int minZoom,
           int maxZoom)
Creates a new Map with the specified projection, stack of tile layers and zoom range.


Map

public Map(Projection projection,
           TileLayer tileLayer,
           int minZoom,
           int maxZoom)
Creates a new Map with the specified projection, tile layer and zoom range.

Method Detail

getProjection

public Projection getProjection()
Returns the projection of this map.


getLayers

public List getLayers()
Returns the stack of {linkplain TileLayer}s in this map. Layers at lower indices are behind layers at higher indices. Treat the returned list as immutable.


getMinZoom

public int getMinZoom()
Returns the smallest available zoom for this Map.


getMaxZoom

public int getMaxZoom()
Returns the biggest available zoom for this Map.