百度地图-解决新版百度定位失败问题

if (mapManager != null) {
			
			mapManager.getLocationManager().enableProvider((int) MKLocationManager.MK_GPS_PROVIDER);  //就是这句话了,新版的地图需要配置一下这个 应该和新版添加了新的定位方式有关
			mapManager.getLocationManager().requestLocationUpdates(
					mLocationListener);
			mLocationOverlay.enableMyLocation();
			mLocationOverlay.enableCompass(); // 打开指南针
			mapManager.start();
		}

你可能感兴趣的:(百度,null)