Booklet Radweg Berlin-Dresden/key

From OpenStreetMap Wiki
Jump to: navigation, search

Here is the LaTeX/tikz-code I used to create the map key for the Booklet Radweg Berlin-Dresden.

\definecolor{motorway-fill}{HTML}{89A4CB}
\definecolor{trunk-fill}{HTML}{94D494}
\definecolor{primary-fill}{HTML}{DD9F9F}
\definecolor{secondary-fill}{HTML}{F9D6AA}
\definecolor{track-fill}{HTML}{996600}
\definecolor{cycleway-fill}{HTML}{0000FF}
\definecolor{footway-fill}{HTML}{FA8072}
\definecolor{admin-boundaries}{HTML}{AC46AC}
\definecolor{buildings}{RGB}{204,153,153}
\definecolor{stations}{RGB}{33,134,176}

\definecolor{forest1}{RGB}{141,197,108}
\definecolor{forest2}{RGB}{174,209,160}
\definecolor{wiese}{RGB}{207,236,168}
\definecolor{residential}{RGB}{204,204,204}
\definecolor{industrial}{RGB}{255,174,185}
\definecolor{commercial}{RGB}{239,200,200}
\definecolor{water}{RGB}{181,208,208}
\definecolor{farmland}{RGB}{234,216,189}
\definecolor{military}{RGB}{255,143,143}
\definecolor{leisure-pitch}{RGB}{138,211,175}


\begin{tabular}{lp{5cm}ll}
\adjustbox{valign=c}{\begin{tikzpicture}
\fill [color=motorway-fill] (0,0) rectangle (1,0.1);
\end{tikzpicture}} & Autobahn
%
& \adjustbox{valign=c}{\begin{tikzpicture}
\fill [color=secondary-fill] (0,0) rectangle (0.15,0.15);
\fill [color=stations] (0.4,0) rectangle (0.55,0.15);
\end{tikzpicture}} & Gebäude; Bahnhof\\
%
\adjustbox{valign=c}{\begin{tikzpicture}
\fill [color=trunk-fill] (0,0) rectangle (1,0.1);
\end{tikzpicture}} & Kraftfahrstraße
%
& \adjustbox{valign=c}{\begin{tikzpicture}
\fill [color=forest1] (0,0) rectangle (0.3,0.2);
\fill [color=forest2] (0.5,0) rectangle (0.8,0.2);
\end{tikzpicture}} & Wald\\
%
\adjustbox{valign=c}{\begin{tikzpicture}
\fill [color=primary-fill] (0,0) rectangle (1,0.1);
\end{tikzpicture}} & Bundesstraße
%
& \adjustbox{valign=c}{\begin{tikzpicture}
\fill [color=wiese] (0,0) rectangle (0.3,0.2);
\end{tikzpicture}} & Wiese\\
%
\adjustbox{valign=c}{\begin{tikzpicture}
\fill [color=secondary-fill] (0,0) rectangle (1,0.1);
\end{tikzpicture}} & Landesstraße
%
& \adjustbox{valign=c}{\begin{tikzpicture}
\fill [color=residential] (0,0) rectangle (0.3,0.2);
\end{tikzpicture}} & Wohngebiet\\
%
\adjustbox{valign=c}{\begin{tikzpicture}
\draw [color=track-fill,dashed,very thick] (0,0)--(1,0);
\end{tikzpicture}} & Wald-, Feldweg
%
& \adjustbox{valign=c}{\begin{tikzpicture}
\fill [color=industrial] (0,0) rectangle (0.3,0.2);
\end{tikzpicture}} & Industriegebiet\\
%
\adjustbox{valign=c}{\begin{tikzpicture}
\draw [dashed] (0,0)--(1,0);
\end{tikzpicture}} & Pfad
%
& \adjustbox{valign=c}{\begin{tikzpicture}
\fill [color=commercial] (0,0) rectangle (0.3,0.2);
\end{tikzpicture}} & Gewerbegebiet\\
%
\adjustbox{valign=c}{\begin{tikzpicture}
\draw [color=cycleway-fill,densely dashed,very thick] (0,0)--(1,0);
\end{tikzpicture}} & Radweg
%
& \adjustbox{valign=c}{\begin{tikzpicture}
\fill [color=water] (0,0) rectangle (0.3,0.2);
\end{tikzpicture}} & Wasserfläche\\
%
\adjustbox{valign=c}{\begin{tikzpicture}
\draw [color=footway-fill,dotted,very thick] (0,0)--(1,0);
\end{tikzpicture}} & Fußweg
%
& \adjustbox{valign=c}{\begin{tikzpicture}
\fill [color=farmland] (0,0) rectangle (0.3,0.2);
\end{tikzpicture}} & Landwirtschaft\\
%
\adjustbox{valign=c}{\begin{tikzpicture}
\draw [color=black,very thick] (0,0.0)--(1,0.0);
\fill [color=gray] (0,0.15) rectangle (1,0.23);
\fill [color=white] (0.2,0.16) rectangle (0.4,0.22);
\fill [color=white] (0.6,0.16) rectangle (0.8,0.22);
\end{tikzpicture}} & Eisenbahn, Straßenbahn
%
& \adjustbox{valign=c}{\begin{tikzpicture}
\fill [color=leisure-pitch] (0,0) rectangle (0.3,0.2);
\end{tikzpicture}} & Sportplatz\\
%
\adjustbox{valign=c}{\begin{tikzpicture}
\draw [color=admin-boundaries,dashed,very thick] (0,0)--(1,0);
\end{tikzpicture}} & Landesgrenzen, sonstige Grenzen
%
& \adjustbox{valign=c}{\begin{tikzpicture}
\fill [color=military] (0,0) rectangle (0.3,0.2);
\end{tikzpicture}} & Militärgebiet\\
%
\adjustbox{valign=c}{\begin{tikzpicture}
\fill [color=secondary-fill] (0,0) rectangle (1,0.1);
\draw [thick] (0.2,0)--(0.8,0);
\draw [thick] (0.2,0.1)--(0.8,0.1);
\end{tikzpicture}} & Brücke\\
%

\end{tabular}