Hi Lyciano, I think you're lucky. Recently I had to something similar myself.
Attached you'll find an example page with a specific control I developed. This control lets you draw a circle (in fact a regularPolygon) given its center and its radius. This is not complete for your use case because the radius is given in the geographical units. You'll want to convert it from km to DD before you call updateCircle. Hope this helps, Pierre ps: I'm about to write a "tutorial" page on the OpenLayers wiki to help people write such a control. Don't hesitate to tell me if my code is clear enough. On Mon, Oct 6, 2008 at 8:12 PM, Luciano - Uol <[EMAIL PROTECTED]> wrote: > Hi All, > > How can I create a circle after give to the OL the POINT [ex: > POINT(-42.77844296875 -12.231795312500001)] and the radius in Km? > > PS: I'm using the unit 'DD' in map file. > > Sds, Luciano. > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users >
Circle.js
Description: JavaScript source
_______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
