
icon(faultMarker(BitmapDescriptorFactory.HUE_GREEN))) googleMap.addMarker(new MarkerOptions(). : This method stops the camera animation if there is one in progressĪdding Markers on the Google Map googleMap.addMarker(new MarkerOptions(). : This method Takes a snapshot of the map snapshot(GoogleMap.SnapshotRead圜allback callback).: This method Toggles the traffic layer on or off : This method repositions the camera according to the instructions defined in the update : This method returns the currently displayed user location : This method removes everything from the map : This method Moves the map according to the update with an animation : This method add tile overlay to the map addTileOverlay(TileOverlayOptions options).Some other customization methods available in the GoogleMap class are given below. We can enable/disable map zoom and rotations using the following lines of codes: googleMap.getUiSettings().setZoomGesturesEnabled(true) googleMap.getUiSettings().setRotateGesturesEnabled(true) tMapType(GoogleMap.MAP_TYPE_NORMAL) tMapType(GoogleMap.MAP_TYPE_HYBRID) tMapType(GoogleMap.MAP_TYPE_SATELLITE) tMapType(GoogleMap.MAP_TYPE_TERRAIN) These types are Normal, Hybrid, Satellite and Terrain. There are four different types of map and each give different view of the map. Using the google map object we can change the map type too. To get hold of the GoogleMap object in our Layout as we tenggat done in the previous latihan.


Features include map markers, map types, camera animations and a few more. In this cak pimpinan we’ll implement a few interesting features provided by the Android Google Maps Api. Please make sure that you’ve been through the Android Google Maps Setup. In this tutorial we’ll discuss and implement some interesting features of android google maps API in our application.
