如何删除当前位置指示器(蓝色圆圈)并仅显示该位置的地图控件

时间:2019-09-03 12:37:28

标签: angular google-maps maps nativescript

在Nativescript中使用google地图时,我想删除当前位置指示器(蓝色圆圈)。

我尝试使用此代码,但这会删除地图的控件。我只想删除当前位置指示器(蓝色圆圈)。

onCameraMove(args) {
    console.log('args', args)
      if(args) {
        this.gMap = args.object.gMap;
        this.gMap.setMyLocationEnabled(true);
        this.gMap.getUiSettings().setMyLocationButtonEnabled(false);          
    }
    console.log("Camera moving: " + JSON.stringify(args.camera));
}

html

 <MapView class="map" (cameraChanged)="onCameraMove($event)"></MapView> 

enter image description here

0 个答案:

没有答案
相关问题