[OpenLayers-Users] createRegularPolygon 'circle' radius units?

darethehair darethehair at gmail.com
Thu Sep 6 16:53:40 PDT 2012


Phil Scadden wrote
> Try setting geodesic to true in the scaleline constructor.

map.addControl(new OpenLayers.Control.ScaleLine({geodesic: true}));

Bingo!  This seems to do the trick.  Much thanks!

(I just wonder if everyone else that has been coding polylines and scales on
their Mercator OpenLayers maps know about these tips and tricks?  In all the
code that I have looked at over the past two days, I didn't see any hints of
this)





--
View this message in context: http://osgeo-org.1560.n6.nabble.com/createRegularPolygon-circle-radius-units-tp5000250p5000310.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list