Hello, I wanted to label two cities in a country by using GMAP, however, with the code I wrote I could not get the right location. Could anyone help me to see what is wrong? Thank you.
I want to label Michalovce and Svidnik in Slovakia.
Codes:
goptions reset=global gunit=pct border cback=white
colors=(black blue green red)
ftext=swissb htitle=6 htext=3;
data mymap1;
set mapsgfk.SLOVAKIA;
keep x y;
run;
data MYMAP;
merge mapsgfk.SLOVAKIA_attr mymap1;
RUN;
data citystar;
length function style color $ 8 position $ 1
text $ 20;
retain function 'label' xsys ysys '2' hsys '3'
when 'a';
set MYMAP(keep=x y IDNAME id1name);
if (IDNAME="Michalovce" and id1name='Kosicky')
or IDNAME="Svidnik";
style='special'; text='M'; color='red'; size=7;
position='5'; output;
style='swissb'; text=IDNAME; color='green';
size=5; position='8'; output;
run;
title "Investigated Areas in Slovakia";
pattern value=mempty color=blue repeat=49;
proc gmap data=MYMAP map=MYMAP;
id id1name;
choro id1name / annotate=citystar discrete nolegend;
run;
quit;