模块:Location map/data/Pakistan

文档图示 模块文档[查看] [编辑] [历史] [清除缓存]
巴基斯坦 位置图
名称 巴基斯坦
边界经纬
37.3
60.5 ←↕→ 80.5
23.4
地图中心 30°21′N 70°30′E / 30.35°N 70.5°E / 30.35; 70.5
图像 Pakistan location map.svg
图像1 Pakistan relief location map.jpg
Map of Pakistan

Module:Location map/data/Pakistan是用于在巴基斯坦等距长方投影英语equirectangular projection地图上叠加标记和标签的位置图定义。标记是按默认的地图或类似地图图像上的纬度经度坐标放置。

使用方法

以下模板均使用名为“Pakistan”的参数:

地图定义

  • name = 巴基斯坦
    用于地图描述的默认值
  • bottom = 23.4
    地图最南端的纬度,以十进制度数显示。
  • left = 60.5
    地图最西端的经度,以十进制度数显示。
  • right = 80.5
    地图最东端的经度,以十进制度数显示。

替代地图

{{Location map}}、{{Location map many}}和{{Location map+}}模板可使用参数来指定替代地图图像。image1的地图可以使用reliefAlternativeMap参数显示出来。 您可以在以下模板中找到更多范例:

精度

经度:这张地图从西到东为20度。

  • 如果图像的宽度为200像素,则为每像素0.1度。
  • 如果图像的宽度为1000像素,则为每像素0.02度。

纬度:这张地图从北到南为13.9度。

  • 如果图像的垂直长度为200像素,则为每像素0.0695度。
  • 如果图像的垂直长度为1000像素,则为每像素0.0139度。

位置图模板使用范例

Location map, using default map (image)

Rajana Pakistan在巴基斯坦的位置
Rajana Pakistan
Rajana Pakistan
Rajana Pakistan (巴基斯坦)

Location map many, using relief map (image1)

Location map/data/Pakistan在巴基斯坦的位置
Rawalpindi
Rawalpindi
Karachi
Karachi
Two locations in Pakistan
{{Location map many | Pakistan
| relief   = yes
| width    = 250
| caption  = Two locations in Pakistan
| lat1_deg = 45.42
| lon1_deg = -75.7
| label1   = Ottawa
| lat2_deg = 24.86
| lon2_deg = 67.01
| label2   = Karachi
}}

Location map+, using AlternativeMap

Location map/data/Pakistan在巴基斯坦的位置
Islamabad
Islamabad
Karachi
Karachi
Two locations in Pakistan
{{Location map+ | Pakistan
| AlternativeMap = Pakistan relief location map.jpg
| width   = 250
| caption = Two locations in Pakistan
| places  =
  {{Location map~ | Pakistan
  | lat_deg = 33.72
  | lon_deg = 73.07
  | label   = Islamabad
  }}
  {{Location map~ | Pakistan
  | lat_deg = 24.86
  | lon_deg = 67.01
  | label   = Karachi
  }}
}}

参见

位置图模板

创建新的地图模块

return {
	name = '巴基斯坦',
	top = 37.3,
	bottom = 23.4,
	left = 60.5,
	right = 80.5,
	image = 'Pakistan location map.svg',
	image1 = 'Pakistan relief location map.jpg'
}