How To View 3D Buildings in My Google Maps Application On Android -
this first question on english stackoverflow(i'm japanese), i'm not used writing english , not @ english.sorry.
i want ask google maps api v2 on android.i created simple map application, , want show 3d buildings. show map, can not view 3d buildings.
i know have drag 2 fingers down on display show 3d buildings.
this code.
private void mapinit() { ismapinit = true; //get locationmanager locationmanager = (locationmanager)this.getsystemservice(context.location_service); //get location information gps location mylocate = locationmanager.getlastknownlocation("gps"); // set map type googlemap.setmaptype(googlemap.map_type_normal); googlemap.setbuildingsenabled(true); boolean test = googlemap.isbuildingsenabled(); // show button of location googlemap.setmylocationenabled(true); mlocationclient = new googleapiclient.builder(this) .addapi(locationservices.api) .addconnectioncallbacks(this) .addonconnectionfailedlistener(this) .build(); if(mlocationclient != null){ mlocationclient.connect(); } }
i try show isbuildingsenabled() value. true. run application on nexus 5 (android 5.0.1),and show 3d buildings on google map android app.
how view 3d buildings in application?
Comments
Post a Comment