How to draw a dotted circle using Google Maps api?

How to draw a dotted circle using Google Maps api? I mean to style the default circle that we draw using the map.addCirlce () method.

Like this: dotted circle

+3


source to share


1 answer


plz, use the google Circle official docs

you need a stroke template



 java.util.List<PatternItem> pattern = Arrays.<PatternItem>asList(new Dot());
    map.addCircle(new CircleOptions()
            .center(latLng)
            .radius(radius)
            .strokePattern(pattern)

      

+4


source







All Articles