Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How draw dotted circle using google maps api?

How draw dotted circle using google maps api? I mean stylize default circle that we draw using method map.addCirlce().

Like this:dotted circle

like image 425
Eugene Iglakov Avatar asked Mar 10 '26 18:03

Eugene Iglakov


1 Answers

plz, use official google docs Circle

you need Stroke Pattern

 java.util.List<PatternItem> pattern = Arrays.<PatternItem>asList(new Dot());
    map.addCircle(new CircleOptions()
            .center(latLng)
            .radius(radius)
            .strokePattern(pattern)
like image 119
ilyagorbunov Avatar answered Mar 12 '26 07:03

ilyagorbunov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!