【发布时间】:2013-06-26 04:03:15
【问题描述】:
我正在使用 google maps API v2 显示地图,但它没有显示任何街道名称。它显示卫星图像但没有文字。我在这里做错了什么?
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_gmaps);
mLocationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
map = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();
map.setMyLocationEnabled(true);
map.setMapType(GoogleMap.MAP_TYPE_SATELLITE);
map.setInfoWindowAdapter(new MyInfoWindowAdapter(this, getLayoutInflater()));
map.setOnMapLongClickListener(this);
map.setOnInfoWindowClickListener(this);
map.setOnMarkerClickListener(this);
mMyLocation = map.getMyLocation();
setMarkerOnLocation();
}
【问题讨论】:
标签: android google-maps