Previous Page | Next Page

The GMAP Procedure

Example 6: Labeling Provinces on a Map


Procedure features:

CHORO statement options:

ANNOTATE=

NOLEGEND

Other features:

Annotate Facility

Sample library member: GMPLABEL

[Labeling States on a U.S. Map]

This example uses the Annotate facility to add labels to each area in a map of Belarus. The CHORO statement assigns the Annotate data set to the map.

The %MAPLABEL annotate macro is used to create and position the map labels. For more information about this macro, see %MAPLABEL Macro.

 Note about code
goptions reset=all border;
 Note about code
title "Labeling Provinces with the MAPLABEL Macro";
footnote j=r "GMPLABEL";
 Note about code
pattern1 value=empty color=blue repeat=6;
 Note about code
%annomac;
%maplabel (maps.belarus, maps.belarus2, work.labelout, idname, id, font=Arial Black,
           color=crimson, size=4, hsys=3);
 Note about code
proc gmap map=maps.belarus data=maps.belarus;
   id id;
   choro id / nolegend annotate=labelout;
run;
quit;

Previous Page | Next Page | Top of Page