OSM setBuiltInZoomControls() 已弃用,现在我该用什么?

What do I use now that OSM setBuiltInZoomControls() is deprecated?

setBuiltInZoomControls() 我想在 OSM 地图中隐藏缩放 +/- 按钮,是否有缩放控制的替代语法?

 Configuration.getInstance().userAgentValue = BuildConfig.APPLICATION_ID;
    binding!!.mapview.setTileSource(TileSourceFactory.DEFAULT_TILE_SOURCE)
     
    binding!!.mapview.setBuiltInZoomControls(false)
   
    binding!!.mapview.setMultiTouchControls(true)
    val mapController: IMapController = binding!!.mapview.controller
    mapController.setZoom(10.0)
    //mapController.setCenter(startPoint)
    val zoomLocation = GeoPoint(38.1890118, -85.9569607)
    mapController.setCenter(zoomLocation)

如何解决此代码中的弃用警告?或者,还有其他选择吗?

@deprecated 使用 {@link #getZoomController().setVisibility()} 代替

代码:

     zoomController.setVisibility(CustomZoomButtonsController.Visibility.NEVER)