Google지도에서 모든 기본 개체를 제거하고 싶습니다. 이 방법이 더 쉽거나 오버레이에서 제작하는 것이 더 쉽다는 것을 알고 싶습니다. Google에서 지원하는 빈지도를 원합니다. 내가 원할 때마다 필요한 장소 나 물체를 추가 할 것인가? maps.clear()
어떤 도움을 추가하지 않습니다, 나는 무언가에 onCreate()
방법 또는 onStart()
방법을 모든 장소를 제거하고 도로와 건물이없는 장소가없는 빈지도를 갖고 싶습니다.google maps api v2에서 기본 개체 제거
public void onMapReady(GoogleMap googleMap) {
mMap = googleMap;
mapReady = true;
Double latitude = location.getLatitude();
Double longitude = location.getLongitude();
if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
// TODO: Consider calling
// ActivityCompat#requestPermissions
// here to request the missing permissions, and then overriding
// public void onRequestPermissionsResult(int requestCode, String[] permissions,
// int[] grantResults)
// to handle the case where the user grants the permission. See the documentation
// for ActivityCompat#requestPermissions for more details.
return;
}
mMap.setMyLocationEnabled(true);
// Add a marker in Sydney and move the camera
//LatLng sydney = new LatLng(-34, 151);
LatLng currentPosition = new LatLng(latitude,longitude);
mMap.addMarker(new MarkerOptions().position(currentPosition).title("Current Location"));
mMap.moveCamera(CameraUpdateFactory.newLatLng(currentPosition));
mMap.animateCamera(CameraUpdateFactory.zoomTo(15));
mMap.setMapType();
loadNearByPlaces(latitude,longitude);
}
이것은 내가 사용한 시작 코드입니다. 그것을 수정하고 그것이 내가 필요로하는 것을 만드는 방법?
감사합니다. @ Xom 에나,이게 내 문제를 해결 :) –