admin管理员组文章数量:1318607
android高德地图轨迹,android
/**
* 高德地图参数样式设置
*/
private void initAMap() {
myLocationStyle = new MyLocationStyle();//初始化定位蓝点样式类myLocationStyle.myLocationType(MyLocationStyle.LOCATION_TYPE_LOCATION_ROTATE);//连续定位、且将视角移动到地图中心点,定位点依照设备方向旋转,而且会跟随设备移动。(1秒1次定位)若是不设置myLocationType,默认也会执行此种模式。
myLocationStyle.interval(2000); //设置连续定位模式下的定位间隔,只在连续定位模式下生效,单次定位模式下不会生效。单位为毫秒。
myLocationStyle.myLocationIcon(BitmapDescriptorFactory.fromResource(R.drawable.icon_track_myself));
myLocationStyle.strokeColor(Color.argb(255, 245, 140, 40));// 设置圆形的边框颜色
myLocationStyle.radiusFillColor(Color.argb(100, 245, 140, 40));// 设置圆形的填充颜色
myLocationStyle.strokeWidth(5);//设置定位蓝点精度圈的边框宽度的方法。
// myLocationStyle.myLocationType(MyLocationStyle.LOCATION_TYPE_SHOW);//只定位一次。
// myLocationStyle.myLocationType(MyLocationStyle.LOCATION_TYPE_LOCATE) ;//定位一次,且将视角移动到地图中心点。</
本文标签: android高德地图轨迹Android
版权声明:本文标题:android高德地图轨迹,android 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/biancheng/1701936600a507586.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论