[OpenLayers-Users] circle (again)...

Diorama Yuanito dioramayuanito at gmail.com
Fri Oct 2 05:08:05 EDT 2009


Hello everybody !
How are u today ?

I just want to ask something, maybe someone can help me...

i write js like these

var circlestyle =
OpenLayers.Util.extend(OpenLayers.Feature.Vector.style['default'], {});
var circle = OpenLayers.Geometry.Polygon.createRegularPolygon(lonlat, myrad,
40);
var uaLayer = new OpenLayers.Layer.Vector("Circle Layer");
uaLayer.addFeatures(new OpenLayers.Feature.Vector(circle));
uaLayer.drawFeature(circle, circlestyle);
map.addLayers([uaLayer]);

in Firebug, everythings seem OK, no Error...
but i couldn't see my circle?

Why?

Thx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20091002/b85ee76c/attachment.html


More information about the Users mailing list