Subscribe
Subscribe to the GIS Tools mailing list, one of several low volume mailing lists alerting you to changes to this site.

Your email address:


 More Info
Scalebar Docs
· Introduction
· Selecting a Style
· Positioning the Scalebar
· Specifying Units
· Displaying the Scale As Text
· Controlling the Number of Intervals
· Text Attributes
· Scalebars With Multiple Units
· Adding a Wrapper to Your Scalebar
· The Scalebar Gallery
Downloads
Download the AML
Home Page | GIS Tools | Resume | Travel | Site Map
gis tools

Ultimate Scalebar Gallery

With the Ultimate Scalebar, you can create nearly endless variations on the basic scalebar theme. What follows are a handful of examples, along with the AML code used to create them.

Note that each of these examples was generated at a mapscale of 2500, and that mapunits were set to meters. The AML code provided will produce scalebars with a slightly different appearance with other mapscales and/or mapunits.

Basic Scalebar

Basic Scalebar

AML Code:

&dv .scalebar$*             /* Delete any existing scalebar variables
&r scalebar.aml 1 1 4 .2


Barstyle 2 Scalebar

Barstyle 2 Scalebar

AML Code:



&dv .scalebar$*             /* Delete any existing scalebar variables
&s .scalebar$barstyle = 2 &r scalebar.aml 1 1 4 .2


Barstyle 3 Scalebar with Text Scale

Barstyle 3 Scalebar with Text Scale

AML Code:



&dv .scalebar$*             /* Delete any existing scalebar variables

&s .scalebar$barstyle = 3
&s .scalebar$scalestyle = 1
&s .scalebar$numstyle = 2

&r scalebar.aml 1 1 4 .2


Barstyle 4 Scalebar with Text Scale
and Comma Radix

Barstyle 4 Scalebar with Text Scale and Comma Radix

AML Code:



&dv .scalebar$*              /* Delete any existing scalebar variables

&s .scalebar$barstyle = 4
&s .scalebar$numstyle = 2
&s .scalebar$scalestyle = 1
&s .scalebar$scaleradix = ,  /* Any string is acceptable.
                             /* For space, use ' '
&r scalebar.aml 1 1 4 .2


Barstyle 6 Scalebar with Text Scale

Barstyle 6 Scalebar with Scale Text

AML Code:



&dv .scalebar$*             /* Delete any existing scalebar variables

&s .scalebar$barstyle = 6
&s .scalebar$scalestyle = 1
&s .scalebar$numstyle = 2

&r scalebar.aml 1 1 4 .2


Barstyle 7 Scalebar with Units Written in Full

Barstyle 7 Scalebar with Units Written in Full

AML Code:



&dv .scalebar$*             /* Delete any existing scalebar variables

&s .scalebar$barstyle = 7
&s .scalebar$unitstyle = 4

&r scalebar.aml 1 1 4 .2


Barstyle 8 Scalebar with Units in Feet

Barstyle 8 Scalebar with Units in Feet

AML Code:



&dv .scalebar$*             /* Delete any existing scalebar variables

&s .scalebar$barstyle = 8
&s .scalebar$unitstyle = 4
&s .scalebar$units = ft     /* Other valid units are m, km, mi, and M

&r scalebar.aml 1 1 4 .2


Basic Scalebar with Large Text
and Alternating Numbers

Basic Scalebar with Large Text and Alternating Numbers

AML Code:



&dv .scalebar$*             /* Delete any existing scalebar variables

&s .scalebar$barstyle = 1
&s .scalebar$numstyle = 3
&s .scalebar$textsize = .4

&r scalebar.aml 1 1 4 .2


Basic Scalebar with Fancy Font

Basic Scalebar with Fancy Font

AML Code:



&dv .scalebar$*                /* Delete any existing scalebar variables

&s .scalebar$font = Galleria   /* Note: This will only work if you
                               /* have Galleria font installed
&s .scalebar$unitstyle = 4

&r scalebar.aml 1 1 4 .2


Basic Scalebar with Text Scale
and Comma Radix

Basic Scalebar with Text Scale and Comma Radix

AML Code:



&dv .scalebar$*               /* Delete any existing scalebar variables

&s .scalebar$numstyle = 2
&s .scalebar$scalestyle = 1
&s .scalebar$scaleradix = ,   /* Any string is acceptable.
                              /* For space, use ' '
&r scalebar.aml 1 1 4 .2


Scalebar With Multiple Units

Scalebar With Multiple Units

AML Code:



&dv .scalebar$*             /* Delete any existing scalebar variables

&s .scalebar$barstyle = 10
&s .scalebar$numstyle = 2
&s .scalebar$unitstyle = 2
&s .scalebar$units = ft

&r scalebar.aml 1 1 4 .2    /* Draw bottom bar

&s .scalebar$barstyle = 8
&s .scalebar$numstyle = 1
&s .scalebar$units = m

&r scalebar.aml 1 1.4 4 .2  /* Draw top bar


For an another example of a scalebar with multiple units, see Drawing Scalebars With Multiple Units.

Top of page | Back to Introduction
Green Tea

Comments or questions to: