Skip city as marker in Android

I would like to navigate to my new activity in the current city the user is in and display it in a Google map fragment inside a circle (for example, an area around a city), however it just adds a marker to the point, is there any I can do that?

thank

+3


source to share


1 answer


I don't know if I got your question, but if you want to show a circle (area) there is a "Circle" element: https://developers.google.com/android/reference/com/google/android/gms/maps/ model / Circle

// Instantiates a new CircleOptions object and defines the center and radius
CircleOptions circleOptions = new CircleOptions()
    .center(new LatLng(37.4, -122.1))
    .radius(1000)); // In meters

// Get back the mutable Circle
Circle circle = myMap.addCircle(circleOptions);

      



Does it answer your question? If not, please provide more details on your needs!

+1


source







All Articles