encoding  utf-8

source EastPassage

layout l500	# 1:500 Map
	scale 1 500
	overlap 1 cm       # margin sizem default 1cm
        color map-fg 40  
	surface off        # turns on or off surface bit-map
  	map-header +015 +005   nw  # turns on the map header positioned at (0,0)
	#legend on         # turns on the symbol legend
    	legend-width 22 cm # printed size, based on scale
	scale-bar 40 m
	statistics carto all 
	#page-setup 42 29.7 39 28.7 0.5 0.5 cm # A3 landscape
	page-setup 21 29.7 20 28.7 0.5 0.5 cm #A4
	#page-setup paper-w paper-h page-w page-h left-m top-m 
	#debug all
	statistics topo-length on # per surveyor lengths
	#statistics topo off # turns off list of surveyors
	map-comment "Copyright Mendip Caving Group 2008"
	grid bottom
	grid-size 40 40 40 m # x,y,z
	#debug on
	code metapost # xs,s,m,l,xl 
		fonts_setup(14,18,25,40,60); 
	#fonts_setup(<tinysize>,<smallsize>,<normalsize>,<largesize>,<hugesize>);
	# which may be used inside of the code metapost section of the layout command. <normalsize>
	# applies to point label, <smallsize> applies to remark and all other point labels.
	# Each of them may apply to line label according to its -size option.
	
	code metapost # change centre line to continuous
	     def l_survey_cave (expr p) =
	       draw p withpen PenD withcolor (0.6, 0.6, 0.6);
	     enddef;
   endcode
endlayout
 
select EastPassage_map@EastPassage
export map -projection plan -layout l500 -o 0.Maps/EastPassage_map.pdf