BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Gick
Pyrite | Level 9

carte.PNG

	title1 "Carte des communes - Scoring";
	proc gmap data = Carto_Synthese_Com1 map = carto_Communes1;	
   	id commune;
    choro Risque / legend = legend1 midpoints = "Obsolète" "Limite" "Vigilance" "Surveillance" "Critique" annotate = annotate_commune coutline = white;
	run;

Hello,

I try to put the labels in the center on the card but it shifts.
Here is the code. I don't know what's wrong.

Can someone please help me and tell me what is wrong with my code.

A code proposal will also be welcome.

Thanks

Gick.

1 ACCEPTED SOLUTION

Accepted Solutions
Gick
Pyrite | Level 9
/* Put labels on the map */
      %annomac;  
      proc sort data=carto_Communes; by commune;run; 
      %maplabel(carto_Communes,carto_Communes,annotate_commune,commune,commune ,font=Albany AMT, color=black, size=2.5, hsys=3); 
/*end*/  
	title1 "Carte des communes - Scoring";
	proc gmap data = Carto_Synthese_Com map = carto_Communes;	
   	id commune;
    choro Risque / legend = legend1 midpoints = "Obsolète" "Limite" "Vigilance" "Surveillance" "Critique" annotate = annotate_commune coutline = white;
	run; 

View solution in original post

1 REPLY 1
Gick
Pyrite | Level 9
/* Put labels on the map */
      %annomac;  
      proc sort data=carto_Communes; by commune;run; 
      %maplabel(carto_Communes,carto_Communes,annotate_commune,commune,commune ,font=Albany AMT, color=black, size=2.5, hsys=3); 
/*end*/  
	title1 "Carte des communes - Scoring";
	proc gmap data = Carto_Synthese_Com map = carto_Communes;	
   	id commune;
    choro Risque / legend = legend1 midpoints = "Obsolète" "Limite" "Vigilance" "Surveillance" "Critique" annotate = annotate_commune coutline = white;
	run; 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1239 views
  • 0 likes
  • 1 in conversation