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; 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 1130 views
  • 0 likes
  • 1 in conversation