如何用 tikz 绘制地理坐标?

如何用 tikz 绘制地理坐标?

您好,我正在尝试绘制真实地点之间路线的地理坐标。我无法全屏或放大显示图表。我在互联网上搜索了一下,但似乎找不到我想要的答案。

我正在考虑要么采用其他方法来显示节点的确切位置,要么找到一种正确绘制这些节点的方法。以下是我目前所拥有的:

\begin{tikzpicture}[shorten >=1pt,scale=0.8,every node/.style={scale=1}]
  \tikzstyle{vertex}=[circle,fill=black!25,minimum size=14pt,inner sep=0pt]
    
  \foreach \name/\x/\y/\z in { -1/45.695555/-73.491674/-1, 7/45.654718/-73.494169/7, 18/45.672313/-73.534913/18, 22/45.661651/-73.549355/22, 32/45.603429/-73.636702/32, 39/45.605645/-73.626765/39, 34/45.610551/-73.619080/34, 33/45.620115/-73.626962/33, 41/45.592402/-73.645209/41, 42/45.602253/-73.637504/42, 44/45.601379/-73.637200/44, 40/45.586000/-73.649305/40, 36/45.594348/-73.625702/36, 38/45.621705/-73.626161/38,-1/45.695555/-73.491674/-1}
      \node[circle,draw] (G-\name) at (\x,\y){$\z$} ;
    
  \foreach \from/\to in {-1/7,7/18,18/22,22/32,32/39,39/34,34/33,33/41,41/42,42/44,44/40,40/36,36/38,38/-1}
    \draw (G-\from) -- (G-\to) node [midway,above,sloped](G-\from-\to){};
    
\end{tikzpicture}

您知道如何在整页中显示我的内容吗?

谢谢。

相关内容