de.fhpotsdam.unfolding.providers
Class MBTilesMapProvider

java.lang.Object
  extended by de.fhpotsdam.unfolding.providers.AbstractMapProvider
      extended by de.fhpotsdam.unfolding.providers.AbstractMapTileProvider
          extended by de.fhpotsdam.unfolding.providers.MBTilesMapProvider

public class MBTilesMapProvider
extends AbstractMapTileProvider

MapProvider for local MBTiles.


Field Summary
protected  java.lang.String jdbcConnectionString
           
 
Fields inherited from class de.fhpotsdam.unfolding.providers.AbstractMapProvider
projection
 
Constructor Summary
MBTilesMapProvider()
           
MBTilesMapProvider(java.lang.String jdbcConnectionString)
           
 
Method Summary
 processing.core.PImage getTile(Coordinate coord)
          Gets tiles for coordinate.
 int tileHeight()
           
 int tileWidth()
           
 
Methods inherited from class de.fhpotsdam.unfolding.providers.AbstractMapTileProvider
getTileUrls
 
Methods inherited from class de.fhpotsdam.unfolding.providers.AbstractMapProvider
coordinateLocation, locationCoordinate, random, sourceCoordinate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jdbcConnectionString

protected java.lang.String jdbcConnectionString
Constructor Detail

MBTilesMapProvider

public MBTilesMapProvider()

MBTilesMapProvider

public MBTilesMapProvider(java.lang.String jdbcConnectionString)
Method Detail

tileWidth

public int tileWidth()
Specified by:
tileWidth in class AbstractMapProvider

tileHeight

public int tileHeight()
Specified by:
tileHeight in class AbstractMapProvider

getTile

public processing.core.PImage getTile(Coordinate coord)
Description copied from class: AbstractMapProvider
Gets tiles for coordinate. Either this or @{link #getTileUrls(Coordinate)} has to be implemented.

Specified by:
getTile in class AbstractMapProvider
Parameters:
coord - The position and zoom to get tile for.
Returns:
A single PImage with the tile.