if you insert the circle into a vector layer , you should be able to get the coordinates of its geometry through the thwo lines I wrote in my response earlier.<div><br></div><div>regards,</div><div>Imran<br><br><div class="gmail_quote">
On Tue, Feb 7, 2012 at 5:20 PM, Blake <span dir="ltr">&lt;<a href="mailto:blakeloizides@gmail.com">blakeloizides@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">I have created a map with create circle now after you draw the circle I want the<br>
coordinates of the circle.<br>
<br>
Please help?<br>
<br>
<br>
<br>
&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>&quot;&gt;<br>
  &lt;head&gt;<br>
   &lt;style type=&quot;text/css&quot;&gt;<br>
 html, body, #map {<br>
                margin: 0;<br>
                width: 100%;<br>
                height: 100%;<br>
            }<br>
<br>
     &lt;/style&gt;<br>
<br>
    &lt;style type=&quot;text/css&quot;&gt;<br>
        #controls {<br>
            width: 512px;<br>
                        position: absolute;<br>
            bottom: 1em;<br>
            left: 1em;<br>
            width: 300px;<br>
            z-index: 20000;<br>
            background-color: #8194D5;<br>
            padding: 0 0.5em 0.5em 0.5em;<br>
        }<br>
        #controlToggle {<br>
            padding-left: 1em;<br>
        }<br>
        #controlToggle li {<br>
            list-style: none;<br>
        }<br>
    &lt;/style&gt;<br>
<br>
&lt;link rel=&quot;stylesheet&quot; href=&quot;theme/default/style.css&quot; type=&quot;text/css&quot;&gt;<br>
&lt;link href=&quot;css/style.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;<br>
&lt;script src=&quot;js/firebug.js&quot;&gt;&lt;/script&gt;<br>
&lt;script src=&quot;<a href="http://www.openlayers.org/dev/OpenLayers.js" target="_blank">http://www.openlayers.org/dev/OpenLayers.js</a>&quot;&gt;&lt;/script&gt;<br>
<br>
&lt;script type=&quot;text/javascript&quot;&gt;<br>
        var lon = 24.0000000000;<br>
        var lat = -29.000000000000;<br>
<br>
        var zoom = 4;<br>
        var map, layer, vectors, controls;<br>
<br>
        function init(){<br>
<br>
           // Because the Streetmaps system uses 300x300 tiles, we need to set<br>
up the scaling variables to work with these<br>
<br>
<br>
var aRes =<br>
<br>
<br>
[90,45,22.500000,11.250000,<br>
5.625000,2.812500,1.406250,0.703125,<br>
0.351563,0.175781,0.087891,0.043945,0.021973,0.010986,<br>
0.005493,0.002747,0.001373,0.000687,0.000343];<br>
         for (var l=0;l&lt;aRes.length;l++) { aRes[l] = aRes[l]/300; }<br>
<br>
          // Normal init, but we pass through the info about the zoom/scaling as<br>
options<br>
          map = new OpenLayers.Map( &#39;map&#39;, { tileSize:<br>
<br>
new OpenLayers.Size(300,<br>
300), projection: &#39;CRS:84&#39;,<br>
<br>
numZoomLevels:aRes.length, resolutions:aRes,<br>
maxResolution:360/300 } );<br>
<br>
          // At this point the control is used as per normal<br>
            layer1 = new OpenLayers.Layer.WMS(<br>
                              &#39;Streetmaps Streets&#39;,<br>
                              &#39;<a href="http://www.streetmaps.co.za/WMS/?" target="_blank">http://www.streetmaps.co.za/WMS/?</a>&#39;,<br>
                              {<br>
                              key:<br>
<br>
<br>
&#39;HZPGNWPNDYPREPTIKSIHWKYKQYYOQVYX&#39;,<br>
                              service:                                &#39;WMS&#39;,<br>
                              request:                                &#39;GetMap&#39;,<br>
                              version:                                &#39;1.3.0&#39;,<br>
                              layers:<br>
&#39;sm.maps.tiled&#39;,<br>
                              format:                                 &#39;image/png&#39;<br>
                                                        }<br>
                                        );<br>
<br>
            layer2 = new OpenLayers.Layer.WMS(<br>
                              &#39;Streetmaps Imagery&#39;,<br>
                              &#39;<a href="http://www.streetmaps.co.za/WMS/?" target="_blank">http://www.streetmaps.co.za/WMS/?</a>&#39;,<br>
                              {<br>
                              key:<br>
&#39;HZPGNWPNDYPREPTIKSIHWKYKQYYOQVYX&#39;,<br>
                              service:                                &#39;WMS&#39;,<br>
                              request:                                &#39;GetMap&#39;,<br>
                              version:                                &#39;1.3.0&#39;,<br>
                              layers:                                 &#39;sm.imagery&#39;,<br>
                              format:                                 &#39;image/png&#39;<br>
                                                        }<br>
                                        );<br>
<br>
<br>
// This loads the overlays<br>
<br>
            map.addLayer(layer1);<br>
            map.addLayer(layer2);<br>
<br>
            map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);<br>
            map.addControl( new OpenLayers.Control.LayerSwitcher() );<br>
<br>
                        var vectors = new OpenLayers.Layer.Vector(&quot;vector&quot;, {isBaseLayer: true});<br>
<br>
<br>
                        map.addControl(new OpenLayers.Control.EditingToolbar(vectors));<br>
                        map.addControl(new OpenLayers.Control.MousePosition());<br>
<br>
<br>
<br>
<br>
<br>
  var wmsLayer = new OpenLayers.Layer.WMS( &quot;OpenLayers WMS&quot;,<br>
                &quot;<a href="http://vmap0.tiles.osgeo.org/wms/vmap0" target="_blank">http://vmap0.tiles.osgeo.org/wms/vmap0</a>?&quot;, {layers: &#39;basic&#39;});<br>
<br>
<br>
<br>
            var polygonLayer = new OpenLayers.Layer.Vector(&quot;Polygon Layer&quot;);<br>
<br>
            map.addLayers([wmsLayer, polygonLayer]);<br>
<br>
            polyOptions = {sides: 40};<br>
            polygonControl = new OpenLayers.Control.DrawFeature(polygonLayer,<br>
                                            OpenLayers.Handler.RegularPolygon,<br>
                                            {handlerOptions: polyOptions});<br>
<br>
<br>
<br>
<br>
<br>
            map.addControl(polygonControl);<br>
<br>
<br>
            document.getElementById(&#39;noneToggle&#39;).checked = true;<br>
             document.getElementById(&#39;irregularToggle&#39;).checked = false;<br>
        }<br>
<br>
<br>
<br>
<br>
<br>
<br>
        function toggleControl(element) {<br>
            for(key in controls) {<br>
                var control = controls[key];<br>
                if(element.value == key &amp;&amp; element.checked) {<br>
                    control.activate();<br>
                } else {<br>
                    control.deactivate();<br>
                }<br>
            }<br>
        }<br>
<br>
<br>
<br>
    &lt;/script&gt;<br>
  &lt;/head&gt;<br>
  &lt;body onLoad=&quot;init()&quot;&gt;<br>
    &lt;div id=&quot;map&quot; class=&quot;smallmap&quot;&gt;&lt;/div&gt;<br>
    &lt;div id=&quot;controls&quot;&gt;<br>
        &lt;ul id=&quot;controlToggle&quot;&gt;<br>
             &lt;li&gt;<br>
                &lt;input type=&quot;radio&quot; name=&quot;type&quot;<br>
                       value=&quot;none&quot; id=&quot;noneToggle&quot;<br>
                       onclick=&quot;polygonControl.deactivate()&quot;<br>
                       checked=&quot;checked&quot; /&gt;<br>
                &lt;label for=&quot;noneToggle&quot;&gt;navigate&lt;/label&gt;<br>
            &lt;/li&gt;<br>
            &lt;li&gt;<br>
                &lt;input type=&quot;radio&quot; name=&quot;type&quot;<br>
                       value=&quot;polygon&quot; id=&quot;polygonToggle&quot;<br>
                       onclick=&quot;polygonControl.activate()&quot; /&gt;<br>
                &lt;label for=&quot;polygonToggle&quot;&gt;draw polygon&lt;/label&gt;<br>
            &lt;/li&gt;<br>
        &lt;/ul&gt;<br>
<br>
<br>
<br>
    &lt;/div&gt;<br>
  &lt;/body&gt;<br>
&lt;/html&gt;<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>I.R<br>
</div>