Nativescript, JavaScript, iOS App Development, Android App Development, Programming.
(!isEnabled) { geolocation.enableLocationRequest(true, true).then(() => { that.isMounted = true if (isAndroid && that.mapView) { let uiSettings = that.mapView.gMap.getUiSettings(); uiSettings.setMyLocationButtonEnabled(true); that.mapView.gMap.setMyLocationEnabled(true); } geolocation