2016-07-20 4 views
0

私のアプリケーションではGoogle Maps Satellite Viewを使用していますが、Google Mapsアプリケーションのように私の町のすべてのラベルを表示していません。Google mapsサテライトビューにすべてのラベルが表示されていません

マイアプリケーション: My application Screenshot

Googleマップアプリケーション:ここに は、私のアプリケーションからとGoogleマップのアプリケーションからのスクリーンショットです Google Maps Application Screenshot

そしてここでは私のコードです:

protected void onCreate(Bundle savedInstanceState) { 
    super.onCreate(savedInstanceState); 
    setContentView(R.layout.activity_location_route); 
    int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getBaseContext()); 
    if (status != ConnectionResult.SUCCESS) { 
     int requestCode = 10; 
     Dialog dialog = GooglePlayServicesUtil.getErrorDialog(status, this, requestCode); 
     dialog.show(); 
    } 
    else{ 
     SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager() 
       .findFragmentById(R.id.map); 
     mapFragment.getMapAsync(this); 
    } 
} 

@Override 
public void onMapReady(GoogleMap googleMap) { 
    try { 
     mGoogleMap = googleMap; 
     mGoogleMap.setMapType(GoogleMap.MAP_TYPE_HYBRID); 
     mGoogleMap.setMyLocationEnabled(true); 
     LocationManager locationManager = (LocationManager) getSystemService(LOCATION_SERVICE); 
     Criteria criteria = new Criteria(); 
     String provider = locationManager.getBestProvider(criteria, true); 
     Location location = locationManager.getLastKnownLocation(provider); 
     if (location != null) { 
      onLocationChanged(location); 
     } 
     drawYourMarker(yourLocation); 
     drawPharmacyMarker(pharmacyLocation); 

     // Checks, whether start and end locations are captured 
     if (yourLocation != null && pharmacyLocation != null) { 
      String url = getDirectionsUrl(yourLocation, pharmacyLocation); 
      DownloadTask downloadTask = new DownloadTask(); 
      downloadTask.execute(url); 
     } 
    } catch (SecurityException e) { 
     e.printStackTrace(); 
    } 
} 

されています私のアプリケーションでGoogle Mapsアプリケーションのように多くのラベルを表示する方法はありますか?

答えて

0

これは、GoogleマップアプリがGoogleから利用可能なすべてのAPIを使用しているためです。探しているAPIは、すべてのラベルを取得するためのGoogle Places APIです。

マップ上に配置するには、Google APIコンソールで電源をオンにしてからtutorialに従わなければなりません。

このヘルプが必要です。

関連する問題