#  this macro clears levels 85-87 & imports the template(s) listed in the
#  current map's header file.  Then clips the levels to the straight-line
#  map frame.

#   first reset the graphics & zoom in on a raster corner (to speed graphics)
graphics
view zoom 0 0

#   next the template levels (85-87) are cleared.
level_clear  85  87

#   next up to three template maps are imported
import  map  $header.template1  85  
import  map  $header.template2  86  
import  map  $header.template3  87  

#   now clip the templates to the map frame
level_clip 85 87

#   now display entire may, highlighting templates
graphics
view map
graphics +h85 +h86 +h87

#   finally, let the user know what happened.
wait Templates listed in header have been imported on levels 85-87 & are highlighted.
