2014-11-26 4 views

답변

1
하여 사용자의 현재 위치의

우선은 위치가지도에 설정하려면이를 사용 한 후에는 LocationListener에서 그것을 얻을해야

// Enabling MyLocation Layer of Google Map 
    map.setMyLocationEnabled(true); 

    // Creating a LatLng object for the current location 
    LatLng latLng = new LatLng(latitude, longitude); 

    // Showing the current location in Google Map 
    map.moveCamera(CameraUpdateFactory.newLatLng(latLng)); 

    // Zoom in the Google Map 
    map.animateCamera(CameraUpdateFactory.zoomTo(15)); 
관련 문제