Issue
So, I have my map all configured, but I can't find the way to center it on a specific coordinate and zoom in. Does anyone know how to do that on Android?
Here is my function where I receive an array with both coordinates.
mBtnlocation.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
double[] coor = new double[2];
coor = getLastLocation();
}
}
Solution
You can use the maps setCamera
function like this:
map.setCamera(center(Point.fromLngLat(-122.33, 47.64)), zoom(14));
Answered By - rbrundritt
Answer Checked By - David Goodson (JavaFixing Volunteer)