2
현재 MapFragment에서 여러 GroundOverlay를 정의하고 있습니다. LatLngBounds로 각 GroundOverlay를 만들고 대부분은 모든 것을 정렬합니다. 그러나 GroundOverlays의 일부는 약간 벗어났습니다.작성 후 GroundOverlay 경계가 변경됩니다.
생성 후 경계를 기록하면 내 예상과 일치합니다. 두 번째로 로그를 기록하면 약간 벗어났습니다.
LatLngBounds bounds = new LatLngBounds(new LatLng(point1_lat, point1_lon), new LatLng(point2_lat, point2_lon));
Log.d(TAG, "Bounds southwest: " + bounds.southwest.latitude + ", " + bounds.southwest.longitude);
Log.d(TAG, "Bounds northeast: " + bounds.northeast.latitude + ", " + bounds.northeast.longitude);
GroundOverlay groundOverlay = getMap().addGroundOverlay(new GroundOverlayOptions()
.image(bitmapDescriptor)
.positionFromBounds(bounds)
);
Log.d(TAG, "southwest: " + groundOverlay.getBounds().southwest.latitude + ", " + groundOverlay.getBounds().southwest.longitude);
Log.d(TAG, "northeast: " + groundOverlay.getBounds().northeast.latitude + ", " + groundOverlay.getBounds().northeast.longitude);
GroundOverlay를 사용하면 위도와 경도가 변경되는 이유는 무엇입니까?