Android Google Maps v2 - set zoom level for myLocation

前端 未结 13 1156
孤城傲影
孤城傲影 2020-12-05 01:39

Is it possible to change the zoom level for myLocation with the new Google Maps API v2?

If you set GoogleMap.setEnableMyLocation(true);, you get a butto

13条回答
  •  生来不讨喜
    2020-12-05 02:17

    In onMapReady() Method

    change the zoomLevel to any desired value.

    float zoomLevel = (float) 18.0;
    mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, zoomLevel));
    

提交回复
热议问题