[OpenLayers-Users] Regular Polygon

Vikash Talanki vikashtalanki at gmail.com
Wed Mar 9 17:01:47 EST 2011


latitude= 17.3157
longitude=78.5046
radius=40,number of sides=50

to draw a circle using createRegularPolygon() I am giving 


var origin={};
origin.x=78.5046;
origin.y=17.3157;
var circle = OpenLayers.Geometry.Polygon.createRegularPolygon(origin, 40,
50,90);
var vlayer = new OpenLayers.Layer.Vector("Editable Vectors"); 
map.addLayer(vlayer); 
vlayer.addFeatures(new OpenLayers.Feature.Vector(circle,null,null));

why I am not able to see the circle??????

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Regular-Polygon-tp6155680p6155680.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list