Google Maps API v2 fails to display 3D

Asked 2 years ago, Updated 2 years ago, 78 views

I am creating an application using Google Maps API v2 on Android.
The map display and marker settings are normal, but when you zoom in, the 3D building is
I'm in trouble because I can't see it. The device is Nexus5 and the Android version is 5.0.1. Below is the map settings.

private void mapInit(){
        isMapInit=true;
        // Get LocationManager
        locationManager=(LocationManager) this.getSystemService(Context.LOCATION_SERVICE);
        // Get current location information from GPS
        Location myLocate=locationManager.getLastKnownLocation("gps");
        // map type setting
        GoogleMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);
        GoogleMap.setBuildsEnabled(true);
        boolean test=googleMap.isBuildsEnabled();

        // display the current position button
        googleMap.setMyLocationEnabled(true);
        mLocationClient=newGoogleApiClient.Builder(this)
        .addApi (LocationServices.API)
        .addConnectionCallbacks (this)
        .addOnConnectionFailedListener(this)
        .build();
        if(mLocationClient!=null){
            mLocationClient.connect();
        }
}

I checked the value of isBuildsEnabled() as a trial, but it was true.
Also, GoogleMap has a 3D display, so there should be no problem with the terminal version.
TargetSdkVersion is set to 21.
I look forward to your kind cooperation.

android google-maps

2022-09-30 18:31

1 Answers

It's only not displayed in 3D in Japan, but it's displayed in 3D in Los Angeles and other places.


2022-09-30 18:31

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.