blob: 17e7f0f5e4231a363a9b8c78f4f8d19b3c3dc185 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package com.mapbox.mapboxsdk.style.sources;
import android.support.annotation.WorkerThread;
import com.mapbox.geojson.FeatureCollection;
import com.mapbox.mapboxsdk.geometry.LatLngBounds;
/**
* Interface that defines methods for working with {@link CustomGeometrySource}.
*/
public interface GeometryTileProvider {
/***
* Interface method called by {@link CustomGeometrySource} to request features for a tile.
*
* @param bounds {@link LatLngBounds} of the tile.
* @param zoomLevel Tile zoom level.
* @return Return a @{link FeatureCollection} to be displayed in the requested tile.
*/
@WorkerThread
FeatureCollection getFeaturesForBounds(LatLngBounds bounds, int zoomLevel);
}
|