0

I'm trying to draw a circle with specific radius in km (for example 2km) on a MapView at specific lat/lng. I've found some samples:

Creating Custom Overlay on the map

Draw A Circle On Android MapView

Draw circle of certain radius on map view in android

I think first and second of above are useful but these are in Java and I need code for Mono for Android (Monodevelop).

I can't find Projection class in monodroid. And can't use com.google.android.maps.Projection. Can somebody help me how to use these codes in monodroid?

Community
  • 1
  • 1

1 Answers1

0

com.google.android.maps.Projection is an interface, so it is made available in Mono for Android as Android.GoogleMaps.IProjection to keep with normal C# conventions.

Similarly, where you'd use mapView.getProjection() in Java, in C# it is made available via the Projection property on MapView.

Xamarin has some tutorials on their site that go over how to use these to create custom overlays, so I'd suggest checking them out.

Greg Shackles
  • 10,009
  • 2
  • 29
  • 35