@UiThread public class VectorSource extends Source
| Constructor and Description |
|---|
VectorSource(java.lang.String id,
java.lang.String url)
Create a vector source from a remote url
|
VectorSource(java.lang.String id,
TileSet tileSet)
Create a vector source from a tilset
|
VectorSource(java.lang.String id,
java.net.URL url)
Create a vector source from a remote url pointing to a TileJSON resource
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize() |
java.lang.String |
getUrl() |
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, getNativePtr, nativeGetAttribution, nativeGetIdpublic VectorSource(java.lang.String id,
java.net.URL url)
id - the source idurl - the TileJSON resource urlpublic VectorSource(java.lang.String id,
java.lang.String url)
id - the source idurl - the urlpublic VectorSource(java.lang.String id,
TileSet tileSet)
id - the source idtileSet - the tileset@NonNull
public java.util.List<com.mapbox.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 public java.lang.String getUrl()
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()