Code example for TileOverlayOptions

0
		} 
	} 
 
	private void setupOfflineMapOverlay() { 
		mMap.setMapType(GoogleMap.MAP_TYPE_NONE);
		TileOverlay tileOverlay = mMap.addTileOverlay(new TileOverlayOptions()
				.tileProvider(new LocalMapTileProvider()));
		tileOverlay.setZIndex(-1);
		tileOverlay.clearTileCache();
	} 
 
	public void zoomToExtents(List<LatLng> pointsList) {
		if (!pointsList.isEmpty()) {
			LatLngBounds bounds = getBounds(pointsList);
			CameraUpdate animation;
			if (isMapLayoutFinished()) 
				animation = CameraUpdateFactory.newLatLngBounds(bounds, 30);
			else 
				animation = CameraUpdateFactory.newLatLngBounds(bounds, 480,
						360, 30); 
			getMap().animateCamera(animation);