Difference between revisions of "Module:Location map/data/Portugal topographic"

From blackwiki
Jump to navigation Jump to search
blackwiki>Frietjes
(Test)
blackwiki>Frietjes
(Test)
Line 1: Line 1:
 
return {
 
return {
 
name = 'Portugal',
 
name = 'Portugal',
−
top    = 42.556757645648545,
+
type = 'polar',
−
bottom = 36.004229003858654,
+
x='20.7249*($2 + 10.9122) -0.279531*($1 - 42.5824)',
−
left  =-10.943657889835464,
+
y='-0.13381*($2 + 10.9122) -15.2607*($1 - 42.5824)',
−
right  = -6.124134329981151,
 
 
image = 'Portugal topographic map-en.svg'
 
image = 'Portugal topographic map-en.svg'
 
}
 
}

Revision as of 19:58, 14 December 2016

Location map of Portugal
name Portugal
x 20.7249*($2 + 10.9122) -0.279531*($1 - 42.5824)
y -0.13381*($2 + 10.9122) -15.2607*($1 - 42.5824)
image Portugal topographic map-en.svg
400x400px


Module:Location map/data/Portugal topographic is a location map definition used to overlay markers and labels on an equirectangular projection map of Portugal. 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 "Portugal topographic":

Map definition

  • name = Portugal
    Name used in the default map caption
  • x = 20.7249*($2 + 10.9122) -0.279531*($1 - 42.5824)
    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 = -0.13381*($2 + 10.9122) -15.2607*($1 - 42.5824)
    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



See also

Location map templates

Creating new map definitions


return {
	name = 'Portugal',
	type = 'polar',
	x='20.7249*($2 + 10.9122) -0.279531*($1 - 42.5824)',
	y='-0.13381*($2 + 10.9122) -15.2607*($1 - 42.5824)',
	image = 'Portugal topographic map-en.svg'
}