Click here to see the SAS code.
Click here to see the example.
In this example, I go a little out of my way to try to make it look
as much like the original map I was trying to imitate (therefore
you could probably do a similar map much easier, by leaving out
about 1/2 of my code :)
My "data" consists of 4 obsns - one for each of the locations that
measured the water level during this hurricane. For each location I
have a city name, some text to use as part of a url, a long/lat location,
and a code (1-9,A-F) to tell how to position/justify the city name
in relation to my annotated marker.
I convert this data into an annotate data set, where it has a yellow "pie"
at each city location, with some annotated text for the city name (using
the 'labelpos' to control the position/justification of the label).
I use the text in the 'link' variable as part of the string I code in as
the href drilldown, so that when you click on the yellow dots it takes you
to the webpage with lots of info about that city's hurricane water level.
I also create a custom ods template, starting with the styles.default,
and adding some "prehtml" which puts the NOAA graphic logo at the top
of the page (I should have probably do this a little more "gracefully",
but it accomplished what I wanted :)
Back to Samples Index