Previous Page | Next Page

Annotate Dictionary

%MAPLABEL Macro



Creates an output data set that can be used with the ANNO= option for PROC GMAP.
Variables written out: FUNCTION, STYLE, COLOR, SIZE, HSYS
Prerequisite: You must run the %ANNOMAC macro before using any other annotate macros. For more information, see Making the Macros Available.

Syntax

Syntax

%MAPLABEL (map-dataset, attr-dataset,output-dataset,label-var,id-list,font=font_name,color=n,size=n,hsys=n);

map-dataset

the name of the map to be annotated.

Note:   If you specify a feature table in your GMAP procedure step, then you should specify the map data set that corresponds to that feature table.  [cautionend]

attr-dataset

the name of the dataset containing the text to be shown on each ID value.

output-dataset

the name of the annotate data set created by the macro.

label-var

the name of the label variable to place on the map (the text for annotate).

id-list

the list of ID vars that you would issue in PROC GMAP to create the map. These values need to be on both the map and the attribute data sets. If you also supply the SEGMENT variable, then every polygon will get a value. Without the SEGMENT variable, only one label per ID set will be shown over the collection of polygons. For instance, Hawaii with SEGMENT gets a label on each island, whereas without SEGMENT, there is only one label centered on the entire set of islands.

font

specifies a font name for the STYLE Variable (Fonts) variable.

color

specifies a value for the COLOR Variable variable.

size

specifies a value for the SIZE Variable variable. Defaults to 2.

hsys

specifies a value for the HSYS Variable variable. Defaults to 3.

Previous Page | Next Page | Top of Page