模組:Location map/data/Eswatini

维基百科,自由的百科全书
文档图示 模块文档[查看] [编辑] [历史] [清除缓存]
史瓦帝尼 位置圖
名稱 史瓦帝尼
邊界經緯
-25.6
30.6 ←↕→ 32.3
-27.5
地圖中心 26°33′S 31°27′E / 26.55°S 31.45°E / -26.55; 31.45
圖像 Eswatini adm location map.svg
圖像1 Swaziland relief location map.svg
圖像2 Swaziland location map Topographic.png
Map of Eswatini

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

使用方法

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

地圖定義

  • name = 史瓦帝尼
    用於地圖描述的默認值
  • bottom = -27.5
    地圖最南端的緯度,以十進制度數顯示。
  • left = 30.6
    地圖最西端的經度,以十進制度數顯示。
  • right = 32.3
    地圖最東端的經度,以十進制度數顯示。

替代地圖

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

精度

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

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

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

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

位置圖模板使用範例

Location map, using default map (image)

Mbabane在史瓦帝尼的位置
Mbabane
Mbabane
Mbabane (史瓦帝尼)
{{Location map | Swaziland
| width   = 200
| lat_deg = -26.32
| lon_deg = 31.13
| label   = Mbabane
}}

Location map many, using relief map (image1)

Location map/data/Eswatini在史瓦濟蘭的位置
Mbabane
Mbabane
Big Bend
Big Bend
Two locations in Eswatini
{{Location map many | Swaziland
| relief   = yes
| width    = 200
| caption  = Two locations in Eswatini
| lat1_deg = -26.32
| lon1_deg = 31.13
| label1   = Mbabane
| pos1     = right
| lat2_deg = -26.82
| lon2_deg = 31.93
| label2   = Big Bend
| pos2     = left
}}

Location map+, using AlternativeMap

Location map/data/Eswatini在史瓦濟蘭的位置
Mbabane
Mbabane
Big Bend
Big Bend
Two locations in Eswatini
{{Location map+ | Swaziland
| AlternativeMap = Swaziland relief location map.svg
| width   = 200
| caption = Two locations in Eswatini
| places  =
  {{Location map~ | Swaziland
  | lat_deg = -26.32
  | lon_deg = 31.13
  | label   = Mbabane
  | position = right
  }}
  {{Location map~ | Swaziland
  | lat_deg  = -26.82
  | lon_deg  = 31.93
  | label    = Big Bend
  | position = left
  }}
}}

參見

位置圖模板

創建新的地圖模塊

return {
	name = '史瓦帝尼',
	top = -25.6,
	bottom = -27.5,
	left = 30.6,
	right = 32.3,
	image = 'Eswatini adm location map.svg',
	image1 = 'Swaziland relief location map.svg',
	image2 = 'Swaziland location map Topographic.png'
}