模組:Location map/data/South Africa

维基百科,自由的百科全书
文档图示 模块文档[查看] [编辑] [历史] [清除缓存]
南非 位置圖
名稱 南非
邊界經緯
-21.8
16 ←↕→ 33.2
-35.2
地圖中心 28°30′S 24°36′E / 28.5°S 24.6°E / -28.5; 24.6
圖像 South Africa adm location map.svg
圖像1 South Africa relief location map.svg
Map of South Africa

Module:Location map/data/South Africa是用於在南非等距長方投影英语equirectangular projection地圖上疊加標記和標籤的位置圖定義。標記是按默認的地圖或類似地圖圖像上的緯度經度坐標放置。

使用方法

以下模板均使用名為“South Africa”的參數:

地圖定義

  • name = 南非
    用於地圖描述的默認值
  • bottom = -35.2
    地圖最南端的緯度,以十進制度數顯示。
  • left = 16
    地圖最西端的經度,以十進制度數顯示。
  • right = 33.2
    地圖最東端的經度,以十進制度數顯示。

替代地圖

{{Location map}}、{{Location map many}}和{{Location map+}}模板可使用參數來指定替代地圖圖像。image1的地圖可以使用reliefAlternativeMap參數顯示出來。 您可以在以下模板中找到更多範例:

精度

經度:這張地圖從西到東為17.2度。

  • 如果圖像的寬度為200像素,則為每像素0.086度。
  • 如果圖像的寬度為1000像素,則為每像素0.0172度。

緯度:這張地圖從北到南為13.4度。

  • 如果圖像的垂直長度為200像素,則為每像素0.067度。
  • 如果圖像的垂直長度為1000像素,則為每像素0.0134度。

位置圖模板使用範例

Location map, using default map (image)

Pretoria在南非的位置
Pretoria
Pretoria
Pretoria (南非)
{{Location map | South Africa
| width   = 250
| lat_deg = -25.75
| lon_deg = 28.19
| label   = Pretoria
}}

Location map many, using relief map (image1)

Location map/data/South Africa在南非的位置
Pretoria
Pretoria
Cape Town
Cape Town
Two locations in South Africa
{{Location map many | South Africa
| relief   = yes
| width    = 250
| caption  = Two locations in South Africa
| lat1_deg = -25.75
| lon1_deg = 28.19
| label1   = Pretoria
| lat2_deg = -33.93
| lon2_deg = 18.42
| label2   = Cape Town
}}

Location map+, using AlternativeMap

Location map/data/South Africa在南非的位置
Pretoria
Pretoria
Cape Town
Cape Town
Two locations in South Africa
{{Location map+ | South Africa
| AlternativeMap = South Africa relief location map.svg
| width   = 250
| caption = Two locations in South Africa
| places  =
  {{Location map~ | South Africa
  | lat_deg = -25.75
  | lon_deg = 28.19
  | label   = Pretoria
  }}
  {{Location map~ | South Africa
  | lat_deg = -33.93
  | lon_deg = 18.42
  | label   = Cape Town
  }}
}}

參見

位置圖模板

創建新的地圖模塊

return {
	name = '南非',
	top = -21.8,
	bottom = -35.2,
	left = 16.0,
	right = 33.2,
	image = 'South Africa adm location map.svg',
	image1 = 'South Africa relief location map.svg'
}