java - Draw five transparent circles on the google map v2 by taking current location as the center of circle -
this question has answer here:
i need draw 5 circle-circle on google maps v2 taking current location center of circle. meaning each of 5 circles have same center different radii: first circle have radius of 10m, second circle radius of 20m, third circle radius of 30m, fourth circle radius of 40m, , fifth circle radius of 50m. using google maps v2.
and need show marker on center of circle well.
i trying draw circle on google map v2 draws 1 circle , not 5 circum-circle
circleoptions circleoptions = new circleoptions() .center(latlng) //set center .radius(500) //set radius in meters .fillcolor(color.transparent) //default .strokecolor(0x10000000) .strokewidth(5); mycircle = googlemap.addcircle(circleoptions); i need draw circum-circle this-

can me this? having problem in making circle in google map v2. appreciated.
for(int rad=100;rad<=500;rad+100) { circleoptions circleoptions = new circleoptions() .center(latlng) //set center .radius(rad) //set radius in meters .fillcolor(color.transparent) //default .strokecolor(0x10000000) .strokewidth(5); mycircle = googlemap.addcircle(circleoptions); }
Comments
Post a Comment