如何使用Google Maps API绘制虚线圆? [英] How draw dotted circle using google maps api?

查看:44
本文介绍了如何使用Google Maps API绘制虚线圆?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Google Maps api绘制虚线圆?我的意思是风格化我们使用map.addCirlce()方法绘制的默认圆.

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

像这样:虚线圆

推荐答案

plz,使用Google官方文档圆圈

plz, use official google docs Circle

您需要中风模式

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

这篇关于如何使用Google Maps API绘制虚线圆?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆