模組:Location map/data/island of Ireland

文档图示 模块文档[查看] [编辑] [历史] [清除缓存]
愛爾蘭島 位置圖
名稱 愛爾蘭島
邊界經緯
55.6
-11 ←↕→ -5
51.2
地圖中心 53°24′N 8°00′W / 53.4°N 8°W / 53.4; -8
圖像 Island of Ireland location map.svg
圖像1 Island of Ireland relief location map.png
Map of Ireland

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

使用方法

以下模板均使用名為“island of Ireland”的參數:

地圖定義

  • name = 愛爾蘭島
    用於地圖描述的默認值
  • bottom = 51.2
    地圖最南端的緯度,以十進制度數顯示。
  • left = -11
    地圖最西端的經度,以十進制度數顯示。
  • right = -5
    地圖最東端的經度,以十進制度數顯示。

替代地圖

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

精度

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

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

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

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

位置圖模板使用範例

Location map, using default map (image)

Dublin在愛爾蘭島的位置
Dublin
Dublin
Dublin (愛爾蘭島)
{{Location map | island of Ireland
| width   = 200
| lat_deg = 53.35
| lon_deg = -6.26
| label   = Dublin
}}

Location map many, using relief map (image1)

Location map/data/island of Ireland在愛爾蘭島的位置
Dublin
Dublin
Belfast
Belfast
Two locations in Ireland
{{Location map many | island of Ireland
| relief   = yes
| width    = 200
| caption  = Two locations in Ireland
| lat1_deg = 53.35
| lon1_deg = -6.26
| label1   = Dublin
| lat2_deg = 54.6
| lon2_deg = -5.93
| label2   = Belfast
}}

Location map+, using AlternativeMap

Location map/data/island of Ireland在愛爾蘭島的位置
Dublin
Dublin
Belfast
Belfast
Two locations in Ireland
{{Location map+ | island of Ireland
| AlternativeMap = Island of Ireland relief location map.png
| width   = 200
| caption = Two locations in Ireland
| places  =
  {{Location map~ | island of Ireland
  | lat_deg = 53.35
  | lon_deg = -6.26
  | label   = Dublin
  }}
  {{Location map~ | island of Ireland
  | lat_deg = 54.6
  | lon_deg = -5.93
  | label   = Belfast
  }}
}}

參見

位置圖模板

創建新的地圖模塊

return {
	name = '愛爾蘭島',
	top = 55.6,
	bottom = 51.2,
	left = -11.0,
	right = -5.0,
	image = 'Island of Ireland location map.svg',
	image1 = 'Island of Ireland relief location map.png'
}