LaTeX

getmap

The magic of getmap

So you want to include into your thesis little maps, downloaded automatically? Here I will give you the starting point:

 

Latex-Example for getmap"getmap01.tex"
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{listings} % This is for the "back ticks" in verbatim environment
% \begin{lstlisting}[language=csh,upquote=true] is only working *together with
% the following package "texcomp"
\usepackage{textcomp} % this package is for the back ticks: \textasciigrave{}
\usepackage{getmap}
\begin{document}

\section{This is a Test to download a Map}

So this is a Test how to make a map in \LaTeX{}.

getmap includes maps in your text, downloads them, and integrates them. To %
compile you enter following command into your shell:

\lstset{upquote=true,showstringspaces=false}
\begin{lstlisting} pdflatex -shell-escape get_map \end{lstlisting}

\getmap[file=bmus2, mode=gm,
      markers={&markers=size:mid|label:B|color:green|Bode Museum, Berlin%
      &markers=label:P|color:green|Pergamonmuseum, Berlin%
      &markers=label:N|color:blue|Neues Museum, Berlin},%
      visible={Brandenburger Tor, Berlin|Reichstagsufer 1, Berlin}]{}
\includegraphics[width=10cm]{bmus2}

\bigskip

\getmap[file=africa,mode=gm,type=terrain,xsize=500,ysize=500,%
      scale=2,zoom=3]{0,16}
\includegraphics[width=9cm]{africa}

\bigskip

\getmap[file=test,mode=gm,type=terrain,xsize=500,ysize=500,%
      scale=2,zoom=5]{48.13903,11.56556}
\includegraphics[width=9cm]{test}

\bigskip

\getmap[file=test2,mode=gm,type=terrain,xsize=500,ysize=500,%
      scale=2,zoom=5]{37.786971,-122.399677}
\includegraphics[width=9cm]{test2}

\bigskip

And here comes one Japanese Map, downloaded with Google-Maps

\getmap[file=japan,mode=gm,type=terrain,xsize=500,ysize=600,%
      scale=2,zoom=5]{35.683333, 139.766667}
\includegraphics[width=9cm]{japan}

\bigskip

And here comes a Japanese Map with the city of ``Kasuga'', downloaded with Open Street Map:

\getmap[file=kasuga,mode=osm,type=map,xsize=500,ysize=600,%
      scale=338500]{35.9777, 139.5800}
\includegraphics[width=9cm]{kasuga}

\end{document}

To compile you change with your shell to the folder of your file getmap01.tex with the command cd and then you enter:

pdflatex -shell-escape getmap01

To read the details, please refer to the manual by entering into your shell:

texdoc getmap