[OpenLayers-Users] Want to change the Unit

Christopher Schmidt crschmidt at metacarta.com
Sat Jul 14 11:40:01 EDT 2007


On Sat, Jul 14, 2007 at 04:55:19PM +0200, Eric Lemoine wrote:
> Hi
> 
> On 7/13/07, pforprasad <prasad.choudhary at gmail.com> wrote:
> >
> > Hello all,
> >
> > I am new to OL exprimenting with it for some project, I want to show scale
> > on map and need to change the units for map, will some one help me to
> > understand properties like resolutions, scale and BoundingBox if i change
> > the scale to 'ft' or 'mt'
> 
> Currently, there's no control for OL to show the current scale. You'll
> have to write your own and use map.getScale() to actually access the
> current scale value. 

Actually, there is an OpenLayers.Control.Scale -- it's not a scalebar,
just a scale value, but it does exist.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list