So, i have my map all configured, but i cant find the way to center it on a specific coordinate and zoom in. Does anyone knows how to do that on android ?
here is my funcion where i receive an array with booth coordinates.
mBtnlocation.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
double[] coor = new double[2];
coor = getLastLocation();
}
}
CodePudding user response:
You can use the maps setCamera
function like this:
map.setCamera(center(Point.fromLngLat(-122.33, 47.64)), zoom(14));