public class TileLayer extends Layer
swigCMemOwn
Constructor and Description |
---|
TileLayer(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
MapTile |
calculateMapTile(MapPos mapPos,
int zoom)
Calculate tile corresponding to given geographical coordinates and zoom level.
Note: zoom level bias is NOT applied, only discrete zoom level is used. |
MapPos |
calculateMapTileOrigin(MapTile mapTile)
Calculate origin map coordinates of given map tile.
|
void |
clearTileCaches(boolean all)
Clear layer tile caches.
|
void |
delete() |
protected void |
finalize() |
static long |
getCPtr(TileLayer obj) |
TileDataSource |
getDataSource()
Returns the data source assigned to this layer.
|
TileSubstitutionPolicy |
getTileSubstitutionPolicy()
Returns the current tile substitution policy.
|
float |
getZoomLevelBias()
Gets the current zoom level bias for this layer.
|
boolean |
isPreloading()
Returns the state of the preloading flag of this layer.
|
boolean |
isUpdateInProgress()
Tests whether this layer is being currently updated.
|
void |
setPreloading(boolean preloading)
Sets the state of preloading for this layer.
|
void |
setTileSubstitutionPolicy(TileSubstitutionPolicy policy)
Sets the current tile substitution policy.
|
void |
setZoomLevelBias(float bias)
Sets the zoom level bias for this layer.
|
static TileLayer |
swigCreatePolymorphicInstance(long cPtr,
boolean cMemoryOwn)
Creates a polymorphic instance of the given native object.
|
java.lang.String |
swigGetClassName()
Returns the actual class name of this object.
|
java.lang.Object |
swigGetDirectorObject()
Returns the connected director object.
|
equals, getCPtr, getPriority, getVisibleZoomRange, hashCode, isVisible, refresh, setPriority, setVisible, setVisibleZoomRange, update
public static long getCPtr(TileLayer obj)
public static TileLayer swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
public TileDataSource getDataSource()
public boolean isPreloading()
public void setPreloading(boolean preloading)
preloading
- The new preloading state of the layer.public TileSubstitutionPolicy getTileSubstitutionPolicy()
public void setTileSubstitutionPolicy(TileSubstitutionPolicy policy)
policy
- The new substitution policy. Default is TILE_SUBSTITUTION_POLICY_ALL.public float getZoomLevelBias()
public void setZoomLevelBias(float bias)
bias
- The new bias value, both positive and negative fractional values are supported.public MapTile calculateMapTile(MapPos mapPos, int zoom)
mapPos
- Coordinates of the point in data source projection coordinate system.zoom
- Zoom level to use for the tile.public MapPos calculateMapTileOrigin(MapTile mapTile)
mapTile
- The map tile to use.public void clearTileCaches(boolean all)
all
- True if all tiles should be released, otherwise only preloading (invisible) tiles are released.public boolean isUpdateInProgress()
Layer
isUpdateInProgress
in class Layer
public java.lang.String swigGetClassName()
swigGetClassName
in class Layer
public java.lang.Object swigGetDirectorObject()
swigGetDirectorObject
in class Layer