模块: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'
}