com.amap.api.maps2d.AMap Java Examples
The following examples show how to use
com.amap.api.maps2d.AMap.
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: LocationActivity.java From Socket.io-FLSocketIM-Android with MIT License | 6 votes |
private void cameraMove(LatLng latLng) { userMoveCamera = false; CameraUpdateFactory factory = new CameraUpdateFactory(); CameraUpdate cameraUpdate = factory.newLatLngZoom(latLng, (float) 15.5); aMap.animateCamera(cameraUpdate, new AMap.CancelableCallback() { @Override public void onFinish() { userMoveCamera = true; } @Override public void onCancel() { userMoveCamera = true; } }); }
Example #2
Source File: AMAPLocationActivity.java From sealtalk-android with MIT License | 6 votes |
private void addChooseMarker() { //加入自定义标签 MarkerOptions centerMarkerOption = new MarkerOptions().position(myLocation).icon(successDescripter); centerMarker = aMap.addMarker(centerMarkerOption); centerMarker.setPositionByPixels(mapView.getWidth() / 2, mapView.getHeight() / 2); handler.postDelayed(new Runnable() { @Override public void run() { CameraUpdate update = CameraUpdateFactory.zoomTo(17f); aMap.animateCamera(update, 1000, new AMap.CancelableCallback() { @Override public void onFinish() { aMap.setOnCameraChangeListener(AMAPLocationActivity.this); } @Override public void onCancel() { } }); } }, 1000); }
Example #3
Source File: AmapActivity.java From sealtalk-android with MIT License | 6 votes |
private void addChooseMarker() { MarkerOptions centerMarkerOption = new MarkerOptions().position(myLocation).icon(chooseDescripter); centerMarker = aMap.addMarker(centerMarkerOption); centerMarker.setPositionByPixels(mapView.getWidth() / 2, mapView.getHeight() / 2); handler.postDelayed(new Runnable() { @Override public void run() { CameraUpdate update = CameraUpdateFactory.zoomTo(17f); aMap.animateCamera(update, 1000, new AMap.CancelableCallback() { @Override public void onFinish() { aMap.setOnCameraChangeListener(AmapActivity.this); } @Override public void onCancel() { } }); } }, 1000); }
Example #4
Source File: FindMapAroundAty.java From myapplication with Apache License 2.0 | 4 votes |
public MyPoiOverlay(AMap amap, List<PoiItem> pois) { mamap = amap; mPois = pois; }
Example #5
Source File: BasicMapActivity.java From sealtalk-android with MIT License | 4 votes |
public AMap getaMap() { return aMap; }