de.fhpotsdam.unfolding.providers
Class CartoDBProvider
java.lang.Object
de.fhpotsdam.unfolding.providers.AbstractMapProvider
de.fhpotsdam.unfolding.providers.AbstractMapTileUrlProvider
de.fhpotsdam.unfolding.providers.CartoDBProvider
public class CartoDBProvider
- extends AbstractMapTileUrlProvider
- Author:
- marcus
Constructor Summary |
CartoDBProvider(java.lang.String account,
java.lang.String dbTable)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static org.apache.log4j.Logger log
masterProvider
public AbstractMapProvider masterProvider
CartoDBProvider
public CartoDBProvider(java.lang.String account,
java.lang.String dbTable)
getZoomString
public java.lang.String getZoomString(Coordinate coordinate)
tileWidth
public int tileWidth()
- Specified by:
tileWidth
in class AbstractMapProvider
tileHeight
public int tileHeight()
- Specified by:
tileHeight
in class AbstractMapProvider
getStyle
public java.lang.String getStyle()
setStyle
public void setStyle(java.lang.String carto)
getSql
public java.lang.String getSql()
setSql
public void setSql(java.lang.String sql)
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)