I used this one to determine coordinates for each marker, and build the master map:
Click here to see the SAS code (mall_build.sas). 
Click here to see the example (mall_build.htm).

This one shows all stores in a given category, with charttip & drilldown on the marker:
Click here to see the SAS code (mall_categories.sas). 
Click here to see the example (mall_categories.htm).

Here are the coordinates for each store:
Click here to see the store location data (mall.dat). 

This one creates the gif animation pages for each store:
Click here to see the SAS code (mall_stores.sas). 
Click here to see the drilldown list (mall_stores.htm). 


First, I got a gif image of the Cary Towne Center ... Original Mall Map
and saved it as cary_map.gif
(I used 'Paint' to set the background to white, rather than transparent brown,
and I also edited out the red 'Coke' machines so they wouldn't compete with
my red marker, and slightly moved one of their entrance arrows)

Then, I brought up the image using 'xv' (image viewer/editor)
on unix, and right-clicked on it, and noted that the dimensions
were 1000 by 698 (1000 is in the x/horizontal-direction).
See xsize & ysize macro variables.

I then create a sas/graph map dataset containing 1 single map area,
with corners at the same x/y coordinates as the gif map/image
so that my map area/coordinates have the same proportions as the
Cary Towne Center map/image.

I can now annotate the red marker on the map/image.
If I use the map/data coordinate system (xsys=2/ysys=2) then I
am assured that once I determine the x/y coordinates of each store,
those coordinates will always line up on the same location when I
annotate the marker. 

mall.dat contains the x/y coordinate to each store.
You get this location by mousing-over or clicking on the desired
location in an image viewer/editor package (paint, unix xv, etc).
This x/y is the location where the marker (such as a star) will
be placed on the map.
Each store needs a unique number (called 'spacenum').
Most of the space numbers are the numbers used on the original map.
For the big stores without numbers, I use an abbreviation of the
store name (which I arbitrarily picked).


If you're on the internal sas web, you can try out my dynamic sas/intrnet
interface, which lets you select a store or category ...

Select By Category

Select By Store



Back to Samples Index