[OpenLayers-Users] Scale Bar
Tim Schaub
noreply at geocartic.com
Tue Aug 8 17:09:30 CDT 2006
>
> Nice. Can it support other units (i.e. Miles)?
>
Sure. To set non-default properties, construct the scale bar, modify some
properties, and then add the control. For english units, do something like:
var myScaleBar = new OpenLayers.Control.ScaleBar();
myScaleBar.displaySystem = 'english';
map.addControl(myScaleBar);
Other properties include divisions, subdivisions, showMinorMeasures, and
align. See ScaleBar.js for defaults. I'll send out more complete docs
later.
Tim
> On Tue, 2006-08-08 at 13:45 -0600, Tim Schaub wrote:
> > I've put together a scale bar for open layers. See it in
> action here:
> > http://tools.geocartic.com/scalebar/openlayers.html
> > (subject to change)
> >
> > This can be configured in javascript and styled up in css. I'll be
> > making some modifications over the next couple days.
> >
> > Comments welcome.
> >
> > Tim Schaub
> >
> >
> > _______________________________________________
> > Users mailing list
> > Users at openlayers.org
> > http://mailman-viper.python-hosting.com/listinfo/users
> >
> >
>
>
>
>
More information about the Users
mailing list