Modul:Location map/data/Canada

De la Wikipedia, enciclopedia liberă
Harta de localizare Canada
nume Canada
border
coordinates
83.2
-142 ←↕→ -52
41.5
map center 62°21′N 97°00′W / 62.35°N 97°V ({{PAGENAME}})
x (0.43865313653137 + (1 - ($1- 63.31) * (0.034717103369757 + 0.000003525145 * ($1- 63.31) * ($1- 63.31))) * ($2+ 94.94) * ( 0.0089116793548638 - 0.000000361163 * ($2 + 94.94) * ($2 + 94.94))) * 100
y (-0.14714022140221 + (1 - ($1- 63.31) * (0.034717103369757 + 0.000003525145 * ($1 - 63.31) * ($1 - 63.31))) * ( 0.57149446494465 - 0.000069482763 * ($2 + 94.94) * ($2 + 94.94))) * 100 * 1.17826087
imagine Canada location map.svg
imagine1 Relief map of Canada.png
Harta Canadei

Modul:Location map/data/Canada este o definiție de hartă de localizare folosită pentru suprapunerea de marcaje și etichete pe o hartă cu proiecție cilindrică echidistantă⁠(d) reprezentând Canada. Marcajele se pun după coordonatele de latitudine și longitudine pe harta implicită sau pe imaginea unei hărți similare.

Utilizare

Aceste definiții se folosesc în următoarele formate atunci când sunt invocate cu parametrul "Canada":

Definiția hărții

  • name = Canada
    Numele utilizat în descrierea implicită a hărții
  • bottom = 41.5
    Latitude at bottom edge of map, in decimal degrees
  • left = -142
    Longitude at left edge of map, in decimal degrees
  • right = -52
    Longitude at right edge of map, in decimal degrees
  • x = (0.43865313653137 + (1 - ($1- 63.31) * (0.034717103369757 + 0.000003525145 * ($1- 63.31) * ($1- 63.31))) * ($2+ 94.94) * ( 0.0089116793548638 - 0.000000361163 * ($2 + 94.94) * ($2 + 94.94))) * 100
    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.14714022140221 + (1 - ($1- 63.31) * (0.034717103369757 + 0.000003525145 * ($1 - 63.31) * ($1 - 63.31))) * ( 0.57149446494465 - 0.000069482763 * ($2 + 94.94) * ($2 + 94.94))) * 100 * 1.17826087
    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

Harta alternativă

Harta este definită ca image1 (Relief map of Canada.png) pot fi afișate utilizând relief sau AlternativeMap parametrii în {{Location map}}, {{Location map many}} și {{Location map+}}. Utilizarea acestor doi parametri este prezentată în exemplele de mai jos. Exemple suplimentare pot fi găsite la adresa:

Precision

Longitude: from West to East this map definition covers 90 degrees.

  • At an image width of 200 pixels, that is 0.45 degrees per pixel.
  • At an image width of 1000 pixels, that is 0.09 degrees per pixel.

Latitude: from North to South this map definition covers 41.7 degrees.

  • At an image height of 200 pixels, that is 0.2085 degrees per pixel.
  • At an image height of 1000 pixels, that is 0.0417 degrees per pixel.

Examples using location map templates

Location map, using default map (image)

Ottawa se află în Canada
Ottawa
Ottawa
Ottawa (Canada)
{{Location map | Canada
| width   = 250
| lat_deg = 45.42
| lon_deg = -75.7
| label   = Ottawa
}}

Location map many, using relief map (image1)

Ottawa se află în Canada
Ottawa
Ottawa
Ottawa (Canada)
Location map/data/Canada se află în Canada
Ottawa
Ottawa
Vancouver
Vancouver
Two locations in Canada
{{Location map many | Canada
| relief   = yes
| width    = 250
| caption  = Two locations in Canada
| lat1_deg = 45.42
| lon1_deg = -75.7
| label1   = Ottawa
| lat2_deg = 49.25
| lon2_deg = -123.1
| label2   = Vancouver
}}

Location map+, using AlternativeMap

Location map/data/Canada se află în Canada
Ottawa
Ottawa
Vancouver
Vancouver
Two locations in Canada
{{Location map+ | Canada
| AlternativeMap = Relief map of Canada.png
| width   = 250
| caption = Two locations in Canada
| places  =
  {{Location map~ | Canada
  | lat_deg = 45.42
  | lon_deg = -75.7
  | label   = Ottawa
  }}
  {{Location map~ | Canada
  | lat_deg = 49.25
  | lon_deg = -123.1
  | label   = Vancouver
  }}
}}

See also

Location map templates
Infobox templates incorporating (passing values to) the Location map template



return {
	name = 'Canada',
	x='(0.43865313653137 + (1 - ($1- 63.31) * (0.034717103369757 + 0.000003525145 * ($1- 63.31) * ($1- 63.31))) * ($2+ 94.94) * ( 0.0089116793548638 - 0.000000361163 * ($2 + 94.94) * ($2 + 94.94))) * 100',
	y='(-0.14714022140221 + (1 - ($1- 63.31) * (0.034717103369757 + 0.000003525145 * ($1 - 63.31) * ($1 - 63.31))) * ( 0.57149446494465 - 0.000069482763 * ($2 + 94.94) * ($2 + 94.94))) * 100 * 1.17826087',
    left = -142,
    right = -52,
	top = 83.2,
	bottom = 41.5,
	image = 'Canada location map.svg',
	image1 = 'Relief map of Canada.png'
}