2012-02-27 49 views
0

2011年中期設置的mapView.setSattelite(true)將只顯示衛星視圖,但最近我們發現相同的設置也會在道路和名稱上方顯示satelliete視圖。 可能在其他國家非常有用,但在中國,當在道路上方添加道路和名稱時,道路不在正確位置。如何顯示僅適用於Android mapview的衛星視圖

有人可以告訴我如何刪除satelliete視圖上的道路和名稱?

如何僅顯示Android mapview的衛星視圖。

我讀類的MapView:

setSatellite(boolean on) 設置地圖模式,以「衛星」模式,疊加道路名稱的航拍圖的加載瓷磚。

有人可以幫我嗎?幫助我們生活在火星上!

回答

0

我不相信這可以實現,因爲當你使用谷歌地圖視圖,圖像來自谷歌自己的路線圖和衛星地圖,除非他們做的更新爲API只顯示沒有道路名稱的衛星圖像。

+0

感謝您的答覆。我們希望谷歌增加API的新功能,像setRoadMap(boolean on),這對我們非常有用。你知道如何通過電子郵件聯繫谷歌地圖查看工程師?我們想要問他們的幫助。順便說一句,我們還有其他選項只能用於衛星視圖嗎? – ADA 2012-02-28 03:13:33

+0

仍未找到解決方案。這是未關閉的問題[http://code.google.com/p/android/issues/detail?id=22405](http://code.google.com/p/android/issues/detail?id=22405) – ADA 2012-04-13 07:49:06

3
public void myClickHandler(View target) { 
     switch(target.getId()) { 
     /*case R.id.zoomin: 
      mapView.getController().zoomIn(); 
      break; 
     case R.id.zoomout: 
      mapView.getController().zoomOut(); 
      break;*/ 
     case R.id.sat: 
      this.mapView.setSatellite(true); 
      break; 
     case R.id.street: 
      this.mapView.setStreetView(true); 
      break; 
     case R.id.traffic: 
      this.mapView.setTraffic(true); 
      break; 
     case R.id.normal: 
      this.mapView.setSatellite(false); 
      this.mapView.setStreetView(false); 
      this.mapView.setTraffic(false); 
      break; 
     default: 
      break; 
     } 

     // The following line should not be required but it is, 
     // at least up til Froyo. 
     this.mapView.postInvalidateDelayed(2000); 
    } 

我相信你需要setStreetView,即使它說,它不贊成它的作品確定爲我

@Deprecated 
public void setStreetView(boolean on) 
Deprecated. Street view availability highlighting is no longer supported. This method operates as a no-op. 

Control whether Street View availability (blue outlines) is shown on the map. This is incompatible with Traffic indicators, so they will be deactivated if necessary. Street View availability can be drawn over map tiles or over satellite tiles; however, they are optimized for map tiles. 
+0

我之前使用過setSatellite(true)的setStreetView(false),但它對我來說不起作用。 – ADA 2012-02-29 07:51:53