Draw Circle on Google Maps


#1

Using the following packages:
“nativescript-geolocation”: “^3.0.0”,
“nativescript-google-maps-sdk”: “^2.0.3”,

Want to draw a circle around a marker on a map. Doing some wrong can anyone help or point me to the correct documentation. Code below.
Thanks,
Tim McClure

public onMapReady = (event) => {
        var mapView = event.object;
        this.listener = watchLocation((loc: Location) => {
            if (loc) {
                this.zone.run(() => {
                    this.latitude = (loc.latitude).toFixed(6);
                    this.longitude = (loc.longitude).toFixed(6);
                    this.horizontalAccuracy = (loc.horizontalAccuracy).toFixed(2);
                    mapView.zoom = this.zoom;
                    if (this.marker !== null) {
                        mapView.removeMarker(this.marker);
                    }
                    this.marker = new mapsModule.Marker();
                    this.marker.position = mapsModule.Position.positionFromLatLng(this.latitude, this.longitude);
                    this.marker.title = "Accuracy=" + this.horizontalAccuracy + " meters";
                    //this.marker.snippet = "PBSO";
                    this.marker.userData = { index: 1 };
                    mapView.addMarker(this.marker);
                    mapView.circle
                    var accuracyCircle = mapView.circle({
                        map: mapView.map,
                       // radius: this.horizontalAccuracy,    
                        radius: 17000,
                        fillColor: '#AA0000'
                      });
                    accuracyCircle.bindTo('center', this.marker, 'position');
                    this.send = false;
                    
                    this.timeStamp = new Date().toLocaleString("en-us", this.dateDisplayOptions);
                    this.loginTimestamp = new Date(this.settings.getLoginTimestamp()).toLocaleString("en-us", this.dateDisplayOptions);
                    this.geo.sendGeo(this.latitude,this.longitude, this.horizontalAccuracy, this.endSession, this);
                    
                });
            }
        }, (e) => {
            console.log("Error: " + e.message);
        }, { desiredAccuracy: Accuracy.high, updateDistance: 1, minimumUpdateTime: 500 });
    }