You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
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:
/**
* 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();
The text was updated successfully, but these errors were encountered: