Skip to content
Snippets Groups Projects
Unverified Commit 73a5c72a authored by Malin Freeborn's avatar Malin Freeborn
Browse files

create function to auto-label maps

parent 0040f0a6
No related branches found
No related tags found
No related merge requests found
......@@ -260,6 +260,30 @@ bookmarks=true]%
\end{figure*}
}
\newcommand\mapLegend[3]{
\node [black, font=\bfseries] at (#1,#2) {\huge #3};
}
\newcommand\mapPic[2]{
\begin{figure*}[t!]
\begin{tikzpicture}[every shadow/.style={
shadow blur invert,
shadow xshift=-1pt,
shadow yshift=-3pt
}]
\node[anchor=south west,inner sep=0] (image) at (0,0) {\includesvg[width=\textwidth]{#1}};
\begin{scope}[
x={(image.south east)},
y={(image.north west)}
]
\foreach \mX/\mY/\mNum in {#2}{
\mapLegend{\mX}{\mY}{\mNum}
}
\end{scope}
\end{tikzpicture}
\end{figure*}
}
\newcounter{blingNo}
\setcounter{blingNo}{0}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment