public class VectorSource extends Source
Constructor and Description |
---|
VectorSource(java.lang.String id,
java.lang.String 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,
android.net.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<Feature> |
querySourceFeatures(java.lang.String[] sourceLayerIds,
Expression filter)
Queries the source for features.
|
checkThread, getAttribution, getId, getNativePtr, nativeGetAttribution, nativeGetId, setDetached
@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 tilesetpublic java.util.List<Feature> querySourceFeatures(java.lang.String[] sourceLayerIds, Expression filter)
sourceLayerIds
- the source layer identifiers. At least one must be specified.filter
- an optional filter expression to filter the returned Features@Deprecated public java.lang.String getUrl()
getUri()
insteadpublic 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.Object
java.lang.Throwable
protected java.lang.String nativeGetUrl()
© 2015–2019 Mapbox. All rights reserved.