我尝试在透明的Google Maps API上绘制圆圈。
CircleOptions circleOptions = new CircleOptions()
.center(new LatLng(lat, lon))
.radius(50.0)
.strokeColor(Color.TRANSPARENT)
.strokeWidth(1)
.fillColor(Color.CYAN); //
但是我喜欢透明地绘制它们,以便可以看到后面的地图?我该怎么办?
对于mGoogleMap作为GoogleMap
对象,经度为
LatLng currentLatLon = new LatLng(lat double value, lng double value);
这是在Google地图中绘制圆圈的方法
mGoogleMap.addCircle(new CircleOptions()
.center(currentLatLon)
.radius(150)
.strokeColor(Color.RED)
.fillColor(0x220000FF)
.strokeWidth(5)
);
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句