Difference between revisions of "Module:Location map/data/Japan Greater Tokyo area"

From blackwiki
Jump to navigation Jump to search
blackwiki>Frietjes
(debug)
blackwiki>Frietjes
Line 1: Line 1:
 
return {
 
return {
 
name = 'Japan',
 
name = 'Japan',
x = '100*(1.722788986650485-0.012210622609591*$2)',
+
x = '100*(1.722788986650485-0.012210622609591*($2 + ($2<0)*360))',
 
y = '100*(8.723466460723742-0.236676753667045*$1)',
 
y = '100*(8.723466460723742-0.236676753667045*$1)',
 
image  = 'Japan location map with side map of the Greater Tokyo Area.svg'
 
image  = 'Japan location map with side map of the Greater Tokyo Area.svg'
 
}
 
}

Revision as of 19:20, 3 January 2018


Location map of Japan
name Japan
x 100*(1.722788986650485-0.012210622609591*($2 + ($2<0)*360))
y 100*(8.723466460723742-0.236676753667045*$1)
image Japan location map with side map of the Greater Tokyo Area.svg
400x400px


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.722788986650485-0.012210622609591*($2 + ($2<0)*360))
    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*(8.723466460723742-0.236676753667045*$1)
    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.722788986650485-0.012210622609591*($2 + ($2<0)*360))',
	y = '100*(8.723466460723742-0.236676753667045*$1)',
	image  = 'Japan location map with side map of the Greater Tokyo Area.svg'
}