Chapter Contents |
Previous |
Next |
The GMAP Procedure |
Procedure Features: |
| ||||||||||||||||||
ODS Features: |
| ||||||||||||||||||
Other Features: |
| ||||||||||||||||||
Sample library member: | GR19N05 |
The example explains how to use the ODS HTML statement and the HTML procedure options to create the drill-down. It shows how to
For more information, see ODS HTML Statement.
The example also illustrates other CHORO and BLOCK statement options.
The program produces one choro map that shows Environmental Protection Agency (EPA) regions and block maps of the states in each region. Each block map shows the number of hazardous waste sites for each state in the selected region. Browser View of Regional Map shows the map of the EPA regions.
Browser View of Region 5 Block Map shows the block map that appears when you select Region 5 in the map.
Browser View of Region 5 Block Map
libname maps 'SAS-MAPS-library'; filename odsout 'path-to-Web-server-space'; |
ods listing close; goptions reset=global gunit=pct cback=white colors=(black blue green red) ftext=swiss htitle=6 htext=3.5; |
goptions device=gif transparency; |
ods html body='hazsite_mapbody.html' contents='hazsite_contents.html' frame='hazsite_frame.html' nogtitle path=odsout; |
title1 'Hazardous Waste Sites in EPA Regions (1997)'; footnote1 h=3 j=l 'click on a map region' j=r 'EPAMAP '; |
pattern1 value=msolid color=blue; pattern2 value=msolid color=green; pattern3 value=msolid color=red; pattern4 value=msolid color=lime; pattern5 value=msolid color=cyan; |
proc gmap map=maps.us data=newsites; id state; choro region / discrete html=regiondrill coutline=black nolegend des='EPA Regional Map' name='epamap'; run; quit; |
ods html body='hazsite_statebody.html' anchor='Region1' gtitle path=odsout; |
goptions notransparency border; |
proc sort data=newsites; by region; run; |
legend1 shape=bar(3,4) label=('Number of Sites' position=(top center)) value=(j=l '0-24' '25-49' '50-74' '75-99' 'over 100') frame; |
pattern1 value=ms color=gray; |
pattern2 value=solid color=lipk; pattern3 value=solid color=cyan; pattern4 value=solid color=green; pattern5 value=solid color=blue; pattern6 value=solid color=red; |
options nobyline; title1 'Wastes Sites per State in Region #byval(region)'; footnote1 h=3 j=r 'SITEMAP '; |
ods html close; ods listing; |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.