跳转到内容

模块:Location map/data/USA New York

维基百科,自由的百科全书
文档图示 模块文档[查看] [编辑] [历史] [清除缓存]
纽约州 位置图
名称 纽约州
边界经纬
45.3
-80 ←↕→ -71.7
40.3
地图中心 42°48′N 75°51′W / 42.8°N 75.85°W / 42.8; -75.85
图像 USA New York location map.svg
Map of New York (click on map to see larger image)

Module:Location map/data/USA New York是用于在the U.S. state of New York等距长方投影英语equirectangular projection地图上叠加标记和标签的位置图定义。标记是按默认的地图或类似地图图像上的纬度经度坐标放置。

使用方法

以下模板均使用名为“USA New York”的参数:

地图定义

  • name = 纽约州
    用于地图描述的默认值
  • bottom = 40.3
    地图最南端的纬度,以十进制度数显示。
  • left = -80
    地图最西端的经度,以十进制度数显示。
  • right = -71.7
    地图最东端的经度,以十进制度数显示。

精度

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

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

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

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

位置图模板使用范例

Location map

Albany在纽约州的位置
Albany
Albany
Albany (纽约州)
{{Location map | USA New York
| width   = 250
| lat_deg = 42 | lat_min = 39 | lat_sec = 09 | lat_dir = N
| lon_deg = 73 | lon_min = 45 | lon_sec = 26 | lon_dir = W
| label   = Albany
}}

Location map many

Location map/data/USA New York在纽约州的位置
Massena
Massena
Tottenville
Tottenville
Findley Lake
Findley Lake
Montauk
Montauk
Locations in New York
{{Location map many | USA New York
| width    = 250
| caption  = Locations in New York
| lat1 = 44.930 | long1 = -74.893 | label1 = Massena
| lat2 = 40.517 | long2 = -74.250 | label2 = Tottenville
| lat3 = 42.119 | long3 = -79.733 | label3 = Findley Lake
| lat4 = 41.038 | long4 = -71.951 | label4 = Montauk
}}

Location map+

Location map/data/USA New York在纽约州的位置
Massena
Massena
Tottenville
Tottenville
Findley Lake
Findley Lake
Montauk
Montauk
Locations in New York
{{Location map+ | USA New York
| width   = 250
| caption = Locations in New York
| places  =
  {{Location map~ | USA New York
  | lat = 44.930 | long = -74.893 | label = Massena
  }}
  {{Location map~ | USA New York
  | lat = 40.517 | long = -74.250 | label = Tottenville
  }}
  {{Location map~ | USA New York
  | lat = 42.119 | long = -79.733 | label = Findley Lake
  }}
  {{Location map~ | USA New York
  | lat = 41.038 | long = -71.951 | label = Montauk
  }}
}}

参见

位置图模板

创建新的地图模块

return {
	name = '纽约州',
	top = 45.3,
	bottom = 40.3,
	left = -80.0,
	right = -71.7,
	image = 'USA New York location map.svg'
}