Click here to see the SAS code.
Click here to see the example.
This is a proof-of-concept, showing how sas/graph 'proc gmap' can
utilize a scanned-in image of a map, and utilize the map's
coordinate system to overlay markers and hotspots (for charttips
and drilldown, etc) in the correct location (ie, the 'registration'
is correct).
I first scan in an image/picture of the map of fort San Felipe,
and then set up a coordinate system, with 0,0 at the bottom/left.
Conveniently, there was a grid/scale in the original map, and I
therefore luse the increments on that scale (in my coordinate
system, each 'tick' on the scale represents 10 units).
I create a sas/graph gmap with one rectangular area.
I make the x/y proportions of this rectangle exactly the same
as the x/y proportions of the scanned-in map.
I then estimate the x/y coordinates of all the hole & trench
labels on the map, and annotate them as red circular 'pies'
on my sas/graph gmap.
I add an html variable to my annotate dataset, containing
charttip and drilldown info (if I had specific info about
each hole & trench, I could set up separate drilldowns to
each one - but since I don't, I just have them all drilldown
to the same generic page).
Back to Samples Index