本文主要是介绍高德地图设置拖动不返回中心点,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
效果:(这是gif循环播放的效果,播放一次就不会返回)
public class WebViewActivity extends Activity implements AMapLocationListener, LocationSource, AMap.OnMapTouchListener, AMap.OnMarkerClickListener {private AMap aMap;private MapView mapView;private AMapLocationClient mlocationClient;private AMapLocationClientOption mLocationOption;// private RadioGroup mGPSModeGroup;private RelativeLayout tab_back_button;MyLocationStyle myLocationStyle;OnLocationChangedListener mListeners;private boolean canMove = true;//变量控制拖动不返回中心点
@Override
protected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);requestWindowFeature(Window.FEATURE_NO_TITLE);// 不显示程序的标题栏setContentView
这篇关于高德地图设置拖动不返回中心点的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!