【发布时间】:2012-01-04 13:07:21
【问题描述】:
mapView.setStreetView(true); 不会对我的应用程序的地图视图产生任何影响,而是当我
写mapView.setStreetView(true); 上面标有一行。如果有人能告诉我这个函数到底是什么,setTraffic 也是如此。
【问题讨论】:
标签: android eclipse google-maps-api-3 google-api
mapView.setStreetView(true); 不会对我的应用程序的地图视图产生任何影响,而是当我
写mapView.setStreetView(true); 上面标有一行。如果有人能告诉我这个函数到底是什么,setTraffic 也是如此。
【问题讨论】:
标签: android eclipse google-maps-api-3 google-api
设置mapView.setStreetView(true)时需要像这样实现街景;
private void showStreetView(){
String geoUriString = "google.streetview:cbll="+latitude+","+longitude+"&cbp=1,99.56,,1,-5.27&mz=21";
Uri geoUri = Uri.parse(geoUriString);
Intent mapCall = new Intent(Intent.ACTION_VIEW, geoUri);
startActivity(mapCall);
}
对于流量不需要任何这样的东西,但流量层适用于纽约、加拿大等一些国家/地区。
【讨论】: