How draw dotted circle using google maps api?

丶灬走出姿态 提交于 2021-02-10 03:05:20

问题


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

Like this:dotted circle


回答1:


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)


来源:https://stackoverflow.com/questions/43982732/how-draw-dotted-circle-using-google-maps-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!