public class RasterSource extends Source
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_TILE_SIZE |
Constructor and Description |
---|
RasterSource(java.lang.String id,
java.lang.String url)
Create the raster source from an URL
|
RasterSource(java.lang.String id,
java.lang.String url,
int tileSize)
Create the raster source from an URL with a specific tile size
|
RasterSource(java.lang.String id,
TileSet tileSet)
Create the raster source from a
TileSet |
RasterSource(java.lang.String id,
TileSet tileSet,
int tileSize)
Create the raster source from a
TileSet with a specific tile size |
RasterSource(java.lang.String id,
java.net.URL url)
Create the raster source from an URL
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
java.lang.String |
getUrl() |
protected void |
initialize(java.lang.String layerId,
java.lang.Object payload,
int tileSize) |
protected java.lang.String |
nativeGetUrl() |
checkThread, getAttribution, getId, getNativePtr, nativeGetAttribution, nativeGetId
public static final int DEFAULT_TILE_SIZE
public RasterSource(java.lang.String id, java.net.URL url)
id
- the source idurl
- the source urlpublic RasterSource(java.lang.String id, java.lang.String url)
id
- the source idurl
- the source urlpublic RasterSource(java.lang.String id, java.lang.String url, int tileSize)
id
- the source idurl
- the source urltileSize
- the tile sizepublic RasterSource(java.lang.String id, TileSet tileSet)
TileSet
id
- the source idtileSet
- the TileSet
@Nullable public java.lang.String getUrl()
protected void initialize(java.lang.String layerId, java.lang.Object payload, int tileSize)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
@NonNull protected java.lang.String nativeGetUrl()