Nativescript, JavaScript, iOS App Development, Android App Development, Programming.
gMap.settings.myLocationButton = true; this.mapView.on("myLocationTapped", event => { geolocation.isEnabled().then(enabled => { if (enabled) { geolocation.getCurrentLocation({ maximumAge: 5000, timeout: 20000 }).then(location => { gMap.animateToLocation(location); }); } }); }); } },