Module:Location map/data/Japan Greater Tokyo area

From blackwiki
< Module:Location map
Revision as of 18:09, 3 January 2018 by blackwiki>Frietjes (import from zh:Template:Location map Japan Greater Tokyo Area)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Location map of Japan
name 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))
image Japan location map with side map of the Greater Tokyo Area.svg
Japan location map with side map of the Greater Tokyo Area.svg


Module:Location map/data/Japan Greater Tokyo area is a location map definition used to overlay markers and labels on an equirectangular projection map of Japan. The markers are placed by latitude and longitude coordinates on the default map or a similar map image.

Usage

These definitions are used by the following templates when invoked with parameter "Japan Greater Tokyo area":

Map definition

  • name = Japan
    Name used in the default map caption
  • x = 100*($1>30.90)*($2-128.24)/(149.27-128.24)+($1<=30.90)*($2-110.43)/(131.44-110.43))
    An expression to calculate a location on the map via its longitude; evaluates as 0 along the left edge and 100 along the right edge
  • y = 100*(($1>30.90)*($1-45.86)/(30.02-45.86)+($1<=30.90)*($1-39.54)/(23.71-39.54))
    An expression to calculate a location on the map via its latitude; evaluates as 0 along the top edge and 100 along the bottom edge


Examples using location map templates

Location map/data/Japan Greater Tokyo area is located in JapanLua error in Module:Location_map at line 399: Malformed coordinates value.Lua error in Module:Location_map at line 399: Malformed coordinates value.Lua error in Module:Location_map at line 399: Malformed coordinates value.
Location map/data/Japan Greater Tokyo area (Japan)
Location map/data/Japan Greater Tokyo area is located in JapanLua error in Module:Location_map at line 399: Malformed coordinates value.Lua error in Module:Location_map at line 399: Malformed coordinates value.Lua error in Module:Location_map at line 399: Malformed coordinates value.Lua error in Module:Location_map at line 399: Malformed coordinates value.Lua error in Module:Location_map at line 399: Malformed coordinates value.
Location map/data/Japan Greater Tokyo area (Japan)

See also

See also

Location map templates

Creating new map definitions


return {
	name = '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))',
	image  = 'Japan location map with side map of the Greater Tokyo Area.svg'
}