Constructor and Description |
---|
CustomGeometrySource(String id,
GeometryTileProvider provider)
Create a CustomGeometrySource
|
CustomGeometrySource(String id,
GeometryTileProvider provider,
GeoJsonOptions options)
Create a CustomGeometrySource with non-default GeoJsonOptions.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
protected void |
initialize(String sourceId,
Object options) |
void |
invalidateRegion(LatLngBounds bounds)
Invalidate previously provided features within a given bounds at all zoom levels.
|
void |
invalidateTile(int zoomLevel,
int x,
int y)
Invalidate the geometry contents of a specific tile.
|
List<com.mapbox.geojson.Feature> |
querySourceFeatures(Filter.Statement filter)
Queries the source for features.
|
void |
setTileData(int zoomLevel,
int x,
int y,
com.mapbox.geojson.FeatureCollection data)
Set or update geometry contents of a specific tile.
|
getAttribution, getId, getNativePtr, nativeGetAttribution, nativeGetId
public CustomGeometrySource(String id, GeometryTileProvider provider)
id
- The source id.provider
- The tile provider that returns geometry data for this source.public CustomGeometrySource(String id, GeometryTileProvider provider, GeoJsonOptions options)
Supported options are minZoom, maxZoom, buffer, and tolerance.
id
- The source id.provider
- The tile provider that returns geometry data for this source.options
- GeoJsonOptions.public void invalidateRegion(LatLngBounds bounds)
bounds
- The region in which features should be invalidated at all zoom levelspublic void invalidateTile(int zoomLevel, int x, int y)
zoomLevel
- Tile zoom level.x
- Tile X coordinate.y
- Tile Y coordinate.public void setTileData(int zoomLevel, int x, int y, com.mapbox.geojson.FeatureCollection data)
zoomLevel
- Tile zoom level.x
- Tile X coordinate.y
- Tile Y coordinate.data
- Feature collection for the tile.@NonNull public List<com.mapbox.geojson.Feature> querySourceFeatures(@Nullable Filter.Statement filter)
filter
- an optional filter statement to filter the returned Features© 2015–2018 Mapbox. All rights reserved.