@UiThread public class VectorSource extends Source
Constructor and Description |
---|
VectorSource(long nativePtr)
Internal use
|
VectorSource(String id,
String url)
Create a vector source from a remote url
|
VectorSource(String id,
TileSet tileSet)
Create a vector source from a tilset
|
VectorSource(String id,
URL url)
Create a vector source from a remote url pointing to a TileJSON resource
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
String |
getUrl() |
protected void |
initialize(String layerId,
Object payload) |
protected String |
nativeGetUrl() |
List<com.mapbox.services.commons.geojson.Feature> |
querySourceFeatures(String[] sourceLayerIds,
Filter.Statement filter)
Queries the source for features.
|
getAttribution, getId, getNativePtr, nativeGetAttribution, nativeGetId
public VectorSource(long nativePtr)
nativePtr
- - pointer to native peerpublic VectorSource(String id, URL url)
id
- the source idurl
- the TileJSON resource urlpublic VectorSource(String id, String url)
id
- the source idurl
- the url@NonNull public List<com.mapbox.services.commons.geojson.Feature> querySourceFeatures(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 Featuresprotected void finalize() throws Throwable
protected String nativeGetUrl()
© 2015–2017 Mapbox. All rights reserved.