@UiThread public class VectorSource extends Source
| Constructor and Description |
|---|
VectorSource(java.lang.String id,
Uri 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 and 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.mapbox.geojson.Feature> |
querySourceFeatures(java.lang.String[] sourceLayerIds,
Expression filter)
Queries the source for features.
|
checkThread, 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,
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 uri@NonNull
public java.util.List<com.mapbox.geojson.Feature> querySourceFeatures(@Size(min=1L)
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()