Code example for GoogleMap

Methods: addMarkeraddTileOverlayanimateCamerasetMapType

        return true; 
    private void setUpMap() { 
    	wmsTileProvider = TileProviderFactory.getOsgeoWmsTileProvider();
        wmsTileOverlay = mMap.addTileOverlay(new TileOverlayOptions().tileProvider(wmsTileProvider));
        // 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. 
        //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));
        CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(latLng, 15);
        mMap.animateCamera(cameraUpdate, 2000, null);
     * Called when the MyLocation checkbox is clicked. 
Contextual code suggestions in your IDE  Get Codota for Java