|
 |
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

AML Code:
&dv .scalebar$* /* Delete any existing scalebar variables
&r scalebar.aml 1 1 4 .2
|
|
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

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

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

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

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

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

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

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

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

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.
Entire site © 1996-2004 by Christopher Eykamp
|