Java Code Examples for com.amap.api.maps2d.CameraUpdateFactory#changeLatLng()
The following examples show how to use
com.amap.api.maps2d.CameraUpdateFactory#changeLatLng() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AMAPLocationActivity.java From sealtalk-android with MIT License | 5 votes |
@Override public void onClick(View v) { switch (v.getId()) { case R.id.myLocation: CameraUpdate update = CameraUpdateFactory.changeLatLng(myLocation); aMap.animateCamera(update); break; default: break; } }
Example 2
Source File: AmapActivity.java From sealtalk-android with MIT License | 5 votes |
@Override public void onClick(View v) { switch (v.getId()) { case R.id.myLocation: CameraUpdate update = CameraUpdateFactory.changeLatLng(myLocation); aMap.animateCamera(update); break; default: break; } }