CustomGeometrySource
, GeoJsonSource
, ImageSource
, RasterDemSource
, RasterSource
, UnknownSource
, VectorSource
public abstract class Source
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected boolean |
detached |
Modifier | Constructor | Description |
---|---|---|
|
Source() |
|
protected |
Source(long nativePtr) |
Internal use
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
checkThread() |
Validates if source interaction is happening on the UI thread
|
java.lang.String |
getAttribution() |
Retrieve the source attribution.
|
java.lang.String |
getId() |
Retrieve the source id
|
java.lang.Integer |
getMaxOverscaleFactorForParentTiles() |
Retrieve current maximum overscale factor for parent tiles.
|
java.lang.Long |
getMinimumTileUpdateInterval() |
Retrieve the minimum tile update interval, which is used to throttle the tile update network requests.
|
long |
getNativePtr() |
Internal use
|
java.lang.Integer |
getPrefetchZoomDelta() |
Retrieve current pre-fetching zoom delta.
|
java.lang.Boolean |
isVolatile() |
Retrieve whether or not the fetched tiles for the given source should be stored in the local cache
|
protected java.lang.String |
nativeGetAttribution() |
|
protected java.lang.String |
nativeGetId() |
|
protected java.lang.Integer |
nativeGetMaxOverscaleFactorForParentTiles() |
|
protected java.lang.Long |
nativeGetMinimumTileUpdateInterval() |
|
protected java.lang.Integer |
nativeGetPrefetchZoomDelta() |
|
protected java.lang.Boolean |
nativeIsVolatile() |
|
protected void |
nativeSetMaxOverscaleFactorForParentTiles(java.lang.Integer maxOverscaleFactor) |
|
protected void |
nativeSetMinimumTileUpdateInterval(java.lang.Long interval) |
|
protected void |
nativeSetPrefetchZoomDelta(java.lang.Integer delta) |
|
protected void |
nativeSetVolatile(java.lang.Boolean value) |
|
void |
setDetached() |
|
void |
setMaxOverscaleFactorForParentTiles(java.lang.Integer maxOverscaleFactor) |
When a set of tiles for a current zoom level is being rendered and some of the
ideal tiles that cover the screen are not yet loaded, parent tile could be
used instead.
|
void |
setMinimumTileUpdateInterval(java.lang.Long interval) |
Sets the minimum tile update interval, which is used to throttle the tile update network requests.
|
void |
setPrefetchZoomDelta(java.lang.Integer delta) |
Set the tile pre-fetching zoom delta for current source.
|
void |
setVolatile(java.lang.Boolean value) |
Set a flag defining whether or not the fetched tiles for the given source should be stored in the local cache
|
protected Source(long nativePtr)
nativePtr
- - pointer to native peerpublic Source()
protected void checkThread()
@NonNull public java.lang.String getId()
@NonNull public java.lang.String getAttribution()
Will return an empty String if no attribution is available.
@Nullable public java.lang.Integer getPrefetchZoomDelta()
public void setPrefetchZoomDelta(@Nullable java.lang.Integer delta)
delta
- zoom deltapublic void setMaxOverscaleFactorForParentTiles(@Nullable java.lang.Integer maxOverscaleFactor)
maxOverscaleFactor
- maximum overscale factor@Nullable public java.lang.Integer getMaxOverscaleFactorForParentTiles()
@NonNull public java.lang.Boolean isVolatile()
public void setVolatile(java.lang.Boolean value)
value
- current setting for volatile.public void setMinimumTileUpdateInterval(java.lang.Long interval)
interval
- the update interval in milliseconds.@NonNull public java.lang.Long getMinimumTileUpdateInterval()
public long getNativePtr()
@NonNull protected java.lang.String nativeGetId()
@NonNull protected java.lang.String nativeGetAttribution()
@NonNull protected java.lang.Integer nativeGetPrefetchZoomDelta()
@NonNull protected void nativeSetPrefetchZoomDelta(java.lang.Integer delta)
@NonNull protected void nativeSetMaxOverscaleFactorForParentTiles(java.lang.Integer maxOverscaleFactor)
@NonNull protected java.lang.Integer nativeGetMaxOverscaleFactorForParentTiles()
@NonNull protected java.lang.Boolean nativeIsVolatile()
@NonNull protected void nativeSetVolatile(java.lang.Boolean value)
@NonNull protected void nativeSetMinimumTileUpdateInterval(java.lang.Long interval)
@NonNull protected java.lang.Long nativeGetMinimumTileUpdateInterval()
public void setDetached()