Swa*_*nil 1 android google-maps google-maps-android-api-2
大家好,在 android v2 地图上做一个示例项目以设置当前位置。我遇到了几行
//what does this line do?
mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));
//this line will animate to the provided lat and lon values
mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(mLastLocation.getLatitude(), mLastLocation.getLongitude()), 16.0f));
Run Code Online (Sandbox Code Playgroud)
mMap.moveCamera 有什么作用?与另一条线相比,我没有看到任何明显的视觉变化。两者的主要区别是什么?moveCamera 似乎类似于 animateCamera IMO。
Ner*_*hum 11
| 归档时间: |
|
| 查看次数: |
4461 次 |
| 最近记录: |