为了账号安全,请及时绑定邮箱和手机立即绑定

请问下面一段程序是什么意思?

请问下面一段程序是什么意思?

二牛26 2016-04-01 20:51:05
 Intent intent = getIntent();        if (intent.hasExtra("x") && intent.hasExtra("y")) {             // 当用intent参数时,设置中心点为指定点             Bundle b = intent.getExtras();            LatLng p = new LatLng(b.getDouble("y"), b.getDouble("x"));            mMapView = new MapView(this,                    new BaiduMapOptions().mapStatus(new MapStatus.Builder()                            .target(p).build()));        } else {            mMapView = new MapView(this, new BaiduMapOptions());        }
查看完整描述

1 回答

?
wm8888

TA贡献21条经验 获得超8个赞

应该是根据传进来的x,y坐标在百度地图中进行定位

查看完整回答
反对 回复 2016-04-05
  • 1 回答
  • 0 关注
  • 1349 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号