@UiThread public class VectorSource extends Source
| Constructor and Description |
|---|
VectorSource(long nativePtr)
Internal use
|
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.services.commons.geojson.Feature> |
querySourceFeatures(java.lang.String[] sourceLayerIds,
Filter.Statement filter)
Queries the source for features.
|
getAttribution, getId, getNativePtr, nativeGetAttribution, nativeGetIdpublic VectorSource(long nativePtr)
nativePtr - - pointer to native peerpublic 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.services.commons.geojson.Feature> querySourceFeatures(java.lang.String[] sourceLayerIds,
@Nullable
Filter.Statement filter)
sourceLayerIds - the source layer identifiers. At least one must be specified.filter - an optional filter statement 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.Throwableprotected java.lang.String nativeGetUrl()