[OpenLayers-Users] RegularPolygon Radius

Andreas Hocevar ahocevar at opengeo.org
Wed Sep 2 06:29:56 EDT 2009


Hi Christopher,

the radius is always in map units. If your projection (e.g. EPSG:900913)
has units in m, then the RegularPolygon radius will be m, otherwise
(e.g. EPSG:4326), it will be degrees.

Regards,
Andreas.


Heidt, Christopher M. wrote:
> Is it possible for OL to create a circle with a metric radius?
> Can i have a 100 meter circle around my target?
>
> ------------------------------------------------------------------------
> *From:* users-bounces at openlayers.org
> [mailto:users-bounces at openlayers.org] *On Behalf Of *Heidt, Christopher M.
> *Sent:* Thursday, August 27, 2009 10:08 AM
> *To:* users at openlayers.org
> *Subject:* [OpenLayers-Users] RegularPolygon Radius
>
> my users are going to want to supply a radius in a metric or english
> unit, but it looks like RegularPolygon is expecting degrees.
> So, my question is does OL have a builtin resource to convert my units?
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>   


-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.




More information about the Users mailing list