Code example for TileOverlayOptions

0
        return true; 
    } 
 
    private void setUpMap() { 
    	wmsTileProvider = TileProviderFactory.getOsgeoWmsTileProvider();
        wmsTileOverlay = mMap.addTileOverlay(new TileOverlayOptions().tileProvider(wmsTileProvider));
        wmsTileOverlay.setVisible(false);
         
        // Because the demo WMS layer we are using is just a white background map, switch the base layer 
        // to satellite so we can see the WMS overlay. 
        //mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE); 
        mMap.setMapType(GoogleMap.MAP_TYPE_NONE);
         
        //LatLng latLng = new LatLng(28.0886, -16.2762); 
        LatLng latLng = new LatLng(Double.parseDouble(y), Double.parseDouble(x));
        Marker mMarker = mMap.addMarker(new MarkerOptions().position(latLng).title(name));
        mMarker.showInfoWindow();
         
        CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(latLng, 15);
        mMap.animateCamera(cameraUpdate, 2000, null);
    }