在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>