MarkerOptions markerOpt = new MarkerOptions(); markerOpt.position(new LatLng(geoLat, geoLng)); markerOpt.draggable(false); markerOpt.visible(true); markerOpt.anchor(0.5f, 0.5f);//设为图片中心 markerOpt.icon(BitmapDescriptorFactory .fromResource(R.drawable.sos_location_38x53)); mMap.addMarker(markerOpt); //将摄影机移动到指定的地理位置 cameraPosition = new CameraPosition.Builder() .target(new LatLng(geoLat, geoLng)) // Sets the center of the map to ZINTUN .zoom(zoom) // 缩放比例 .bearing(0) // Sets the orientation of the camera to east .build(); // Creates a CameraPosition from the builder mMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition)); ~~~
6.实现地图圆角效果:使用圆角.9图片,中间透明,圆角四周不透明<br> 详细可以看这个提问:[Is there a way to implement rounded corners to a Mapfragment?](http://stackoverflow.com/questions/14469208/is-there-a-way-to-implement-rounded-corners-to-a-mapfragment)
------------------------------------------------------------------------------------------------------------------------------
Enjoy it ? Donate me ! 欣赏此文?求鼓励,求支持!