I'm trying to integrate the TilequeryActivity.java from the demo into a navigation app - but am having trouble with the .tilesetIds method when building a new class of the MapboxTilequery object.
I get the error " cannot find symbol method .tilesetIds(string)"
Has this method been replaced with something else?
Aside from changing the string of access_token, the code is unchanged from the demo. Here it is:
/**
Use the Java SDK's MapboxTilequery class to build a API request and use the API response
@param point the center point that the the tilequery will originate from.
*/
private void makeTilequeryApiCall(@NonNull LatLng point) {
MapboxTilequery tilequery = MapboxTilequery.builder()
.accessToken(getString(R.string.mapbox_access_token))
//.tilesetIds("mapbox.bethanyjane.10puvo6w")
.tilesetIDS("mapbox.mapbox-streets-v7")
.query(Point.fromLngLat(point.getLongitude(), point.getLatitude()))
.radius(50)
.limit(10)
.geometry("polygon")
.dedupe(true)
.layers("building")
.build();
I'm trying to integrate the TilequeryActivity.java from the demo into a navigation app - but am having trouble with the .tilesetIds method when building a new class of the MapboxTilequery object. I get the error " cannot find symbol method .tilesetIds(string)"
Has this method been replaced with something else?
Aside from changing the string of access_token, the code is unchanged from the demo. Here it is:
/**
@param point the center point that the the tilequery will originate from. */ private void makeTilequeryApiCall(@NonNull LatLng point) { MapboxTilequery tilequery = MapboxTilequery.builder() .accessToken(getString(R.string.mapbox_access_token)) //.tilesetIds("mapbox.bethanyjane.10puvo6w") .tilesetIDS("mapbox.mapbox-streets-v7") .query(Point.fromLngLat(point.getLongitude(), point.getLatitude())) .radius(50) .limit(10) .geometry("polygon") .dedupe(true) .layers("building") .build();