public class VectorSource extends Source
Constructor and Description |
---|
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<Feature> |
querySourceFeatures(String[] sourceLayerIds,
Expression filter)
Queries the source for features.
|
checkThread, getAttribution, getId, getNativePtr, nativeGetAttribution, nativeGetId
public VectorSource(String id, URL url)
id
- the source idurl
- the TileJSON resource urlpublic VectorSource(String id, String url)
id
- the source idurl
- the urlpublic List<Feature> querySourceFeatures(String[] sourceLayerIds, Expression filter)
sourceLayerIds
- the source layer identifiers. At least one must be specified.filter
- an optional filter expression to filter the returned Featurespublic String getUrl()
protected void finalize() throws Throwable
protected String nativeGetUrl()
© 2015–2018 Mapbox. All rights reserved.