openlayers 画圆
addCircle:function(lon,lat,radius,_id){
var point=new OpenLayers.Geometry.Point(lon, lat);
var circle = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Polygon.createRegularPolygon(point,radius/100000,40,0));
circle.id=”circle_”+_id;
this.vectors.addFeatures([circle], {silent: true});
},
转载自:https://blog.csdn.net/javaisthis/article/details/6735742