跳转到内容

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