如何通过在谷歌地图上添加Overlaid图像来隐藏谷歌地图中的谷歌徽标?

Sar*_*a G 4 android google-maps

我正在使用GroundOverlayOptions在谷歌地图上添加位图图像,该图像将叠加在谷歌地图上.

以下是我的代码.

 @Override
public void onLocationChanged(Location location) {

    TextView tvLocation = (TextView) findViewById(R.id.tv_location);
    location = generateRandomLoc(location, 0);
    double latitude = location.getLatitude();
    double longitude = location.getLongitude();
    LatLng latLng = new LatLng(latitude, longitude);

    //Setting padding to hide google logo
    mapView.setPadding(-10,0,0,0);

    CameraPosition cameraPosition = new CameraPosition.Builder().target(latLng).build();
    mapView.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));
    mapView.moveCamera(CameraUpdateFactory.newLatLng(latLng));
    //get camera position frm map view
    LatLng cameraPosLatLng = mapView.getCameraPosition().target;
    if (isFlag) {
        BitmapDescriptor image = BitmapDescriptorFactory.fromResource(R.drawable.overlay_pink_image);
        mapView.addGroundOverlay(new GroundOverlayOptions()
                .image(image).position(latLng, 458, 274)
                .transparency(0.5f));
        mapView.animateCamera(CameraUpdateFactory.zoomTo(17));
    }
    if (cirle != null) {
        cirle.remove();
    }
    cirle = mapView.addCircle(new CircleOptions().center(cameraPosLatLng).strokeColor(Color.GREEN).fillColor(Color.GREEN).radius(0.7));
}
Run Code Online (Sandbox Code Playgroud)

我试图通过设置填充来隐藏MapView中的Google徽标,但该徽标不会从MapView中隐藏.当我在左侧或底部设置-10填充时,将禁用10%的视图.但是在地图视图的情况下,这可能是不同的.如果我设置填充(50,0,0,0); 该徽标将放置在右侧.如何在Google地图上禁用或隐藏Google的徽标.

任何帮助,将不胜感激.

Ano*_*p M 20

请尝试尊重Google地图服务条款

9.4归因.

  • 通过本服务提供给您的内容可能包含Google的品牌特征,其战略合作伙伴或其他Google索引内容的第三方权利持有者.当Google通过服务提供这些品牌特征或其他归属信息时,您必须显示所提供的归属信息(或地图API文档中所述),并且不得删除或更改归属信息.
  • 您必须在相关服务搜索框和Google搜索结果中或附近显着显示"Google提供的"归因(以及Google在Maps API文档中要求的任何其他归因).如果您使用标准Google搜索控件或标准Google搜索控制表单,则会自动包含此归因,并且您不得修改或隐藏此自动生成的归因.

即使可能,开发人员也无权更换徽标.

  • 违反条款和政策并不是一个好的驱动因素.您可能需要对客户说同样的话:) (4认同)