de.fhpotsdam.unfolding.providers
Class AbstractMapTileProvider

java.lang.Object
  extended by de.fhpotsdam.unfolding.providers.AbstractMapProvider
      extended by de.fhpotsdam.unfolding.providers.AbstractMapTileProvider
Direct Known Subclasses:
MBTilesMapProvider

public abstract class AbstractMapTileProvider
extends AbstractMapProvider

Handles tiles from other sources, such as databases, local files, etc.


Field Summary
 
Fields inherited from class de.fhpotsdam.unfolding.providers.AbstractMapProvider
projection
 
Constructor Summary
AbstractMapTileProvider(AbstractProjection projection)
           
 
Method Summary
 java.lang.String[] getTileUrls(Coordinate coordinate)
          Gets tile URLs for coordinate.
 
Methods inherited from class de.fhpotsdam.unfolding.providers.AbstractMapProvider
coordinateLocation, getTile, locationCoordinate, random, sourceCoordinate, tileHeight, tileWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMapTileProvider

public AbstractMapTileProvider(AbstractProjection projection)
Method Detail

getTileUrls

public java.lang.String[] getTileUrls(Coordinate coordinate)
Description copied from class: AbstractMapProvider
Gets tile URLs for coordinate. May return multiple URLs, if provider handles multiple layers. Either this or @{link #getTile(Coordinate)} has to be implemented.

Specified by:
getTileUrls in class AbstractMapProvider
Parameters:
coordinate - The position and zoom to get tile for.
Returns:
An array with tile URLs (mostly just one)