#  This macro erases the margin area of the map & draws a striaght line frame.

#  first, the margin is erased outside the registered corners.
erase_margin

#  next, a straight line frame is drawn around the registered corners.
frame d r
