Click here to see the SAS code.
Click here to see the example.

---------------------------------------------------------------

Sometimes labels aren't easily visible if the color behind them
is not a high contrast (such as dark text on a dark map area, or
light-colored text on a light-colored map area).
In such case it is often useful to specify a different text
color for the problem areas...

data maplabel; set maplabel;
length function $8;
retain flag 0;
xsys='2'; ysys='2'; hsys='3'; when='a';
function='label'; style="albany amt/bold"; position='5';  
if players >=49 then color='graydd';  <----- ******
else color='gray44';                  <----- ******
size=2.8;
if ocean='Y' then color='gray44';
text=trim(left(players));
if ocean='Y' then do;
 position='6'; color='gray44'; output;
 function='move';
 flag=1;
 end;
else if flag=1 then do;
 function='draw'; color='gray44'; size=.25;
 flag=0;
 end;
output;
run;


Back to Samples Index