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 an arbitrary 
coordinate system that is 'drawn' on the map, to position and 
overlay markers and hotspots (for charttips and drilldown, etc) 
(ie, the 'registration' is correct).

Note that this example differs from most of my other examples
of overlaying annotate onto an image, in that those other 
examples use the xpixels & ypixels of the image as the
coordinate system, such as:

   PNC Stadium Map
   Mexico Map
   Theater Seating Layout
   

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 use 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