encoding utf-8
source AN55.th
export map -proj plan -layout standard -layout plan -o ../../../Outputs/MinasMazarrasa/AN55(Plan).pdf
#export map -proj extended -layout standard -layout elevation -o ../../../Outputs/MinasMazarrasa/AN55E.pdf
export map -proj plan -o ../../../Outputs/MinasMazarrasa/AN55.kml
input ..\..\..\XTherionFiles\_translations.txt # custom Spanish translations for legend
input ..\..\..\XTherionFiles\_layouts.mp # Allows scaling of Photos and makes water blue
input ..\..\..\XTherionFiles\_globallayouts.thc #allows the same symbols to be used across all surveys
layout plan
rotate 90
map-image 80 10 s ..\..\..\XTherionFiles\TCP.png
map-header -10 10 s
#scale 1 500
scale-bar 20 m
#color map-fg scrap
color-legend off
grid bottom
grid-size 20 20 20 m
#north grid
color map-fg [97 93 43]
endlayout
layout standard
fonts-setup 6 12 16 40 60
symbol-colour area water [25 50 100]
### index of file options from _layouts.mp
copy custom_border
copy custom_snow
copy custom_flowstone
#copy custom_water_blue
#copy custom_legend_large_format_5U
copy custom_scalebar #borrowedstolen base from AndrewAtkinson Wookeyhole template
#copy custom_continuations
### index of file options from _globallayouts.thc
copy global_symbols
copy global_color
#copy global_medium_cave
#copy global_small_cave
map-comment "WGS84 UTM 30T 0360992 4785413 Alt: 1925m
Tresviso Caves Project www.tresvisocaves.info
BCRA Grade 1a
Data: cave-registry.org.uk/svn/Andara/"
doc-author "Phil Walker"
doc-keywords "AN55 Minas de Mazarrasa Spain"
doc-subject "Survey of Minas AN55 Minas de Mazarrasa 2021"
doc-title "Minas AN55 Minas de Mazarrasa Tresviso Caves Project 2021"
##HIDE LENGTH AND DEPTH
code tex-map
\cavelength={} %empty
\cavedepth={} %empty
\legendcontent={%
\hsize=\legendwidth
\ifnortharrow\vbox to 0pt{\line{\hfil\northarrow}\vss}\fi
\edef\tmp{\the\cavename} \ifx\tmp\empty \else
{\size[60]\the\cavename} \vskip1cm
\fi
\ifscalebar\scalebar\vskip1cm\fi
{\rightskip=0pt plus 3em\parskip=3bp
\edef\tmp{\the\comment} \ifx\tmp\empty \else
{\size[12]\the\comment} \par\medskip
\fi
\everypar{\hangindent=2em\hangafter=1}
\edef\tmp{\the\cavelength} \ifx\tmp\empty \else
{\size[12]\si\the\cavelengthtitle: \ss\the\cavelength\par}
\fi
\edef\tmp{\the\cavedepth} \ifx\tmp\empty \else
{\size[12]\si\the\cavedepthtitle: \ss\the\cavedepth\par}
\fi
\edef\tmp{\the\exploteam} \ifx\tmp\empty \else
{\size[12]\si\the\explotitle:
\ss\the\exploteam\quad\si\the\explodate\par}
\fi
\edef\tmp{\the\topoteam} \ifx\tmp\empty \else
{\size[12]\si\the\topotitle: \ss\the\topoteam\quad\si\the\topodate\par}
\fi
\edef\tmp{\the\cartoteam} \ifx\tmp\empty \else
{\size[12]\si\the\cartotitle:
\ss\the\cartoteam\quad\si\the\cartodate\par}
\fi
\edef\tmp{\the\copyrights} \ifx\tmp\empty \else
{\size[12]\ss\the\copyrights\par}
\fi
}
\formattedlegend
}
endcode
endlayout