How to draw circle around a pin using Google MAps API v2

后端 未结 5 1011
刺人心
刺人心 2021-01-31 20:31

I am using the new API(Google Map API V2) for my android application, i have done creating the map and adding markers to it, now my task is to manually create a circle around an

5条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-31 21:27

    Perhaps help you :

     GoogleMap map;
     // ... get a map.
     // Add a circle in Sydney
     Circle circle = map.addCircle(new CircleOptions()
         .center(new LatLng(-33.87365, 151.20689))
         .radius(10000)
         .strokeColor(Color.RED)
         .fillColor(Color.BLUE));
    

    From here :

    HERE

提交回复
热议问题