Last active
September 10, 2020 14:18
-
-
Save tugcearar/ec42ff5ee9d7651cc40c904d41aa3147 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void DrawCircleOnMap(GeofenceModel geoModel) | |
{ | |
if (circle != null) | |
{ | |
circle.Remove(); | |
circle = null; | |
} | |
CircleOptions circleOptions = new CircleOptions() | |
.InvokeCenter(geoModel.LatLng) | |
.InvokeRadius(geoModel.Radius) | |
.InvokeFillColor(Color.Argb(50, 0, 14, 84)) | |
.InvokeStrokeColor(Color.Yellow) | |
.InvokeStrokeWidth(15); | |
circle = hMap.AddCircle(circleOptions); | |
} | |
private void radiusBar_ProgressChanged(object sender, SeekBar.ProgressChangedEventArgs e) | |
{ | |
selectedCoordinates.Radius = e.Progress; | |
DrawCircleOnMap(selectedCoordinates); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment