模組:Location map/data/Japan

被永久保护的模块
维基百科,自由的百科全书
文档图示 模块文档[查看] [编辑] [历史] [清除缓存]
日本 位置圖
名稱 日本
x 100*(($1>30.90)*($2-128.24)/(149.27-128.24)+($1<=30.90)*($2-110.43)/(131.44-110.43))
y 100*(($1>30.90)*($1-45.86)/(30.02-45.86)+($1<=30.90)*($1-39.54)/(23.71-39.54))
圖像 Japan location map with side map of the Ryukyu Islands.svg
圖像1 Japan natural location map with side map of the Ryukyu Islands.jpg
圖像2 Japan bluemarble location map with side map of the Ryukyu Islands.jpg


Module:Location map/data/Japan是用於在日本等距長方投影英语equirectangular projection地圖上疊加標記和標籤的位置圖定義。標記是按默認的地圖或類似地圖圖像上的緯度經度坐標放置。

使用方法

以下模板均使用名為“Japan”的參數:

地圖定義

  • name = 日本
    用於地圖描述的默認值
  • y = 100*(($1>30.90)*($1-45.86)/(30.02-45.86)+($1<=30.90)*($1-39.54)/(23.71-39.54))
    根據緯度計算地圖上位置的公式;最北端為0,最南端為100。

替代地圖

{{Location map}}、{{Location map many}}和{{Location map+}}模板可使用參數來指定替代地圖圖像。image1的地圖可以使用reliefAlternativeMap參數顯示出來。 image2 可以使用AlternativeMap參數顯示出來。您可以在以下模板中找到更多範例:


參見

位置圖模板

創建新的地圖模塊

return {
	name = '日本',
	x = '100*(($1>30.90)*($2-128.24)/(149.27-128.24)+($1<=30.90)*($2-110.43)/(131.44-110.43))',
	y = '100*(($1>30.90)*($1-45.86)/(30.02-45.86)+($1<=30.90)*($1-39.54)/(23.71-39.54))',
	image = 'Japan location map with side map of the Ryukyu Islands.svg',
	image1 = 'Japan natural location map with side map of the Ryukyu Islands.jpg',
	image2 = 'Japan bluemarble location map with side map of the Ryukyu Islands.jpg',
	wikidata = 'Q17',
}