?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());??????? }
添加回答
舉報
0/150
提交
取消