[OpenLayers-Users] drawing a circle in openlayers

remi remiglobal at gmail.com
Thu Aug 26 08:50:57 EDT 2010


Hi imran,

i don't really get your problem. From your first email, you state that you
want to figure out the coordinates of the vertices in lat,long format. Is
this what you want?

me a noob here, but i'm trying to understand the prob.

remi

On Thu, Aug 26, 2010 at 8:29 PM, Imran Rajjad <rajjad at gmail.com> wrote:

> hmmm .. but my calculated radius problem is still there.. though i
> managed to calculate the vertices using geodetic distance
>
>
>
> On Thu, Aug 26, 2010 at 5:20 PM, Ralph Dell <RDell at catawbacountync.gov>
> wrote:
> > It will give you a polygon with 40 sides. While not technically a circle
> it works very well at looking like a circle.
> >
> > Ralph Dell, GISP
> > GIS Dept.
> > Catawba County, NC
> >
> >
> > -----Original Message-----
> > From: Imran Rajjad [mailto:rajjad at gmail.com]
> > Sent: Thursday, August 26, 2010 8:16 AM
> > To: Ralph Dell
> > Cc: users at openlayers.org
> > Subject: Re: [OpenLayers-Users] drawing a circle in openlayers
> >
> > hi,
> >
> > yea I checked this example but I`m not sure what is 40? is it a pixel
> > value or some default unit.?
> >
> > regards,
> > Imran
> >
> > On Thu, Aug 26, 2010 at 5:01 PM, Ralph Dell <RDell at catawbacountync.gov>
> wrote:
> >> Have you tried the polygon control?
> >>
> >> // set up the polygon control, for drawing a circle
> >>  polyOptions = {sides: 40};
> >>  polygonControl = new OpenLayers.Control.DrawFeature(circleLayer,
> >>                OpenLayers.Handler.RegularPolygon,
> >>                {handlerOptions: polyOptions});
> >>        map.addControl(polygonControl);
> >>
> >> ..
> >>
> >> polygonControl.handler.setOptions({radius: radiusx});
> >> polygonControl.handler.activate();
> >>
> >> Ralph Dell
> >>
> >> -----Original Message-----
> >> From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org
> ]
> >> On Behalf Of Imran Rajjad
> >> Sent: Thursday, August 26, 2010 7:32 AM
> >> To: <users at openlayers.org>
> >> Subject: [OpenLayers-Users] drawing a circle in openlayers
> >>
> >> Hi list,
> >>
> >> I`m trying to draw a circle geometry with a radius of 30m, currently
> >> I`m calculating lat/long of each vertex from the centre , i was hoping
> >> if this could be done through openlayers
> >>
> >> regards,
> >> Imran
> >>
> >> --
> >> I.R
> >> _______________________________________________
> >> Users mailing list
> >> Users at openlayers.org
> >> http://openlayers.org/mailman/listinfo/users
> >> _______________________________________________
> >> Users mailing list
> >> Users at openlayers.org
> >> http://openlayers.org/mailman/listinfo/users
> >>
> >
> >
> >
> > --
> > I.R
> >
>
>
>
> --
> I.R
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100826/289b8a94/attachment.html


More information about the Users mailing list