<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
I am trying to create a circle with fixed radius programatically and <FONT size=2>am using OpenLayers.Geometry.Polygon.createRegularPolygon(center, radius, sides, angle) to do that.&nbsp; </FONT><BR><BR>I have trouble converting my distance, say 800 feet, to the correct radius value in map units.&nbsp; This is what I do:<BR>
&nbsp;<BR><FONT size=2>
var inches = OpenLayers.INCHES_PER_UNIT;</FONT><FONT size=2><BR>
radius = radius * inches["ft"] / inches[map.getUnits()];<BR>
&nbsp;<BR>
The circle drawn has smaller radius than what I wanted.&nbsp; What's the right way of converting real distance to map units?&nbsp; And by 'map units', does it mean the value returned by map.getUnits()?<BR>
&nbsp;<BR>
Thanks for any help.<BR>
&nbsp;<BR>
Cynthia<BR></FONT>                                               </body>
</html>