模块: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 require('Module:Location map/data/island of Ireland')