@UiThread public class VectorSource extends Source
| Constructor | Description |
|---|---|
VectorSource(java.lang.String id,
android.net.Uri uri) |
Create a vector source from an URI.
|
VectorSource(java.lang.String id,
TileSet tileSet) |
Create a vector source from a tileset
|
VectorSource(java.lang.String id,
java.lang.String uri) |
Create a vector source from an URI.
|
VectorSource(java.lang.String id,
java.net.URL url) |
Deprecated.
use
VectorSource(String, Uri) instead |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
finalize() |
|
java.lang.String |
getUri() |
Get the source URI.
|
java.lang.String |
getUrl() |
Deprecated.
use
getUri() instead |
protected void |
initialize(java.lang.String layerId,
java.lang.Object payload) |
|
protected java.lang.String |
nativeGetUrl() |
|
java.util.List<com.trimblemaps.geojson.Feature> |
querySourceFeatures(java.lang.String[] sourceLayerIds,
Expression filter) |
Queries the source for features.
|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckThread, getAttribution, getId, getMaxOverscaleFactorForParentTiles, getMinimumTileUpdateInterval, getNativePtr, getPrefetchZoomDelta, isVolatile, nativeGetAttribution, nativeGetId, nativeGetMaxOverscaleFactorForParentTiles, nativeGetMinimumTileUpdateInterval, nativeGetPrefetchZoomDelta, nativeIsVolatile, nativeSetMaxOverscaleFactorForParentTiles, nativeSetMinimumTileUpdateInterval, nativeSetPrefetchZoomDelta, nativeSetVolatile, setDetached, setMaxOverscaleFactorForParentTiles, setMinimumTileUpdateInterval, setPrefetchZoomDelta, setVolatile@Deprecated
public VectorSource(java.lang.String id,
java.net.URL url)
VectorSource(String, Uri) insteadid - the source idurl - the TileJSON resource urlpublic VectorSource(java.lang.String id,
android.net.Uri uri)
An URI is a combination of a protocol and a resource path. The following URI protocol schemes are supported:
id - the source iduri - the TileJSON resource uripublic VectorSource(java.lang.String id,
java.lang.String uri)
An URI is a combination of a protocol and a resource path. The following URI protocol schemes are supported:
id - the source iduri - the uripublic VectorSource(java.lang.String id,
TileSet tileSet)
id - the source idtileSet - the tileset@NonNull
public java.util.List<com.trimblemaps.geojson.Feature> querySourceFeatures(java.lang.String[] sourceLayerIds,
@Nullable
Expression filter)
sourceLayerIds - the source layer identifiers. At least one must be specified.filter - an optional filter expression to filter the returned Features@Nullable @Deprecated public java.lang.String getUrl()
getUri() instead@Nullable public java.lang.String getUri()
protected void initialize(java.lang.String layerId,
java.lang.Object payload)
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable@NonNull protected java.lang.String nativeGetUrl()