ଛାଞ୍ଚ:Location map Alaska
name | Alaska | |||
---|---|---|---|---|
border coordinates | ||||
72 | ||||
172 | ←↕→ | -129 | ||
51 | ||||
map center | 61°30′N 158°30′W / 61.5°N 158.5°W | |||
x | (100*(({{{3}}} + ({{{3}}} < 0)*360) - 172)/((-129 + 360) - 172)) | |||
y | (100*({{{2}}} - 72)/(51 - 72)) | |||
image | USA Alaska location map.svg
| |||
image1 | 800x598 Carte Alaska R3.jpg
| |||
Template:Location map USA Alaska is a location map definition used to overlay markers and labels on an equirectangular projection map of the U.S. state of Alaska. 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 "USA Alaska":
{{Location map|USA Alaska |...}}
{{Location map many|USA Alaska |...}}
{{Location map+|USA Alaska |...}}
{{Location map~|USA Alaska |...}}
Map definition
ସମ୍ପାଦନା- name = Alaska
- Name used in the default map caption
- image = USA Alaska location map.svg
- The default map image, without "Image:" or "File:"
- image1 = 800x598 Carte Alaska R3.jpg
- An alternative map image, usually a relief map, can be displayed via the relief or AlternativeMap parameters
- top = 72
- Latitude at top edge of map, in decimal degrees
- bottom = 51
- Latitude at bottom edge of map, in decimal degrees
- left = 172
- Longitude at left edge of map, in decimal degrees
- right = -129
- Longitude at right edge of map, in decimal degrees
- x = (100*(({{{3}}} + ({{{3}}} < 0)*360) - 172)/((-129 + 360) - 172))
- 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*({{{2}}} - 72)/(51 - 72))
- 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
Technical details
ସମ୍ପାଦନାFor a map using an equirectangular projection which does not cross +/-180 longitude, or +/-90 latitude, the following expressions can be used:
x = 100*(long - left)/(right - left)
y = 100*(lat - top)/(bottom - top)
where lat and long are the degrees latitude and longitude respectively. Here, top and bottom are the degrees latitude of the top and bottom edges of the map, left and right are the degrees latitude of the left and right edges of the map.
Things are a bit more complicated when the map crosses +/-180 longitude, and some sort of "modulo arithmetic" is required. Here, we add 360 if the longitude is less than 0, then use a mapping based on positive coordinates. The following table can be used to check if the expressions are working as desired:
location | lat | long | (x,y) test | (x,y) exact |
---|---|---|---|---|
top/left | 72 | 172 | (0,-0) | (0,0) |
top/right | 72 | -129 | (100,-0) | (100,0) |
bottom/left | 51 | 172 | (0,100) | (0,100) |
bottom/right | 51 | -129 | (100,100) | (100,100) |
center | 61.5 | 201.5 | (50,50) | (50,50) |
Alternative map
The map defined as image1 (800x598 Carte Alaska R3.jpg) can be displayed by using the relief or AlternativeMap parameters in {{Location map}}, {{Location map many}} and {{Location map+}}. The use of these two parameters is shown in the examples below. Additional examples can be found at:
Examples using location map templates
ସମ୍ପାଦନାLocation map: Eastern hemisphere, Deg/Min/Sec coordinates
ସମ୍ପାଦନାLua error in ମଡ୍ୟୁଲ:Location_map at line 522: Unable to find the specified location map definition: "Module:Location map/data/USA Alaska" does not exist.
{{Location map | USA Alaska | width = 250 | float = right | label = Attu Island | position = right | lat_deg = 52 | lat_min= 54 | lat_sec = 09 | lat_dir = N | lon_deg = 172 | lon_min= 54 | lon_sec = 34 | lon_dir = E }}
Location map: Eastern hemisphere, Decimal coordinates
ସମ୍ପାଦନାLua error in ମଡ୍ୟୁଲ:Location_map at line 522: Unable to find the specified location map definition: "Module:Location map/data/USA Alaska" does not exist.
{{Location map | USA Alaska | width = 250 | float = right | label = Attu Island | position = right | lat = 52.9025 | long = 172.909444 }}
Location map: Western hemisphere, Deg/Min/Sec coordinates, Relief map
ସମ୍ପାଦନାLua error in ମଡ୍ୟୁଲ:Location_map at line 522: Unable to find the specified location map definition: "Module:Location map/data/USA Alaska" does not exist.
{{Location map | USA Alaska | relief = yes | width = 250 | float = right | label = Ketchikan | position = left | caption = Location of [[Ketchikan]] in Alaska | lat_deg = 55 | lat_min= 21 | lat_sec = 00 | lat_dir = N | lon_deg = 131 | lon_min= 40 | lon_sec = 24 | lon_dir = W }}
Location map: Western hemisphere, Decimal coordinates, AlternativeMap
ସମ୍ପାଦନାLua error in ମଡ୍ୟୁଲ:Location_map at line 522: Unable to find the specified location map definition: "Module:Location map/data/USA Alaska" does not exist.
{{Location map | USA Alaska | AlternativeMap = 800x598 Carte Alaska R3.jpg | width = 250 | float = right | label = Ketchikan | position = left | caption = Location of [[Ketchikan]] in Alaska | lat = 55.35 | long = -131.673333 }}
Location map many: Deg/Min/Sec
ସମ୍ପାଦନାLua error in ମଡ୍ୟୁଲ:Location_map/multi at line 143: Unable to find the specified location map definition: "Module:Location map/data/USA Alaska" does not exist.
{{Location map many | USA Alaska | float = right | width = 300 | caption = [[Attu Island]] and [[Ketchikan]] in Alaska | label = Attu Island | label_size = 90 | pos = right | lat_deg = 52 | lat_min= 54 | lat_sec = 09 | lat_dir = N | lon_deg = 172 | lon_min= 54 | lon_sec = 34 | lon_dir = E | label2 = Ketchikan | label2_size = 90 | pos2 = left | lat2_deg = 55 | lat2_min= 21 | lat2_sec = 00 | lat2_dir = N | lon2_deg = 131 | lon2_min= 40 | lon2_sec = 24 | lon2_dir = W }}
Location map many: Decimal coordinates
ସମ୍ପାଦନାLua error in ମଡ୍ୟୁଲ:Location_map/multi at line 143: Unable to find the specified location map definition: "Module:Location map/data/USA Alaska" does not exist.
{{Location map many | USA Alaska | float = right | width = 300 | caption = [[Attu Island]] and [[Ketchikan]] in Alaska | label = Attu Island | label_size = 90 | pos = right | lat = 52.9025 | long = 172.909444 | label2 = Ketchikan | label2_size = 90 | pos2 = left | lat2 = 55.35 | long2 = -131.673333 }}
See also
ସମ୍ପାଦନା- Template:Location map Alaska relief, displays the relief map shown above (for infoboxes that do not support alternative maps)
- Template:Location map USA
- Template:Location map USA2
- Location map templates
- Template:Location map, to display one mark and label using latitude and longitude
- Template:Location map many, to display up to nine marks and labels
- Template:Location map+, to display an unlimited number of marks and labels
- Infobox templates incorporating (passing values to) the Location map template
- Template:Geobox
- Template:Infobox academic division
- Template:Infobox aerial lift line
- Template:Infobox airport — alternative map support: relief (via pushpin_relief) and AlternativeMap (via pushpin_image)
- Template:Infobox ancient site — alternative map support: relief
- Template:Infobox aqueduct
- Template:Infobox artwork
- Template:Infobox Australia state or territory
- Template:Infobox Australian road
- Template:Infobox beach
- Template:Infobox body of water
- Template:Infobox bridge
- Template:Infobox building — alternative map support: relief
- Template:Infobox business park
- Template:Infobox casino
- Template:Infobox castrum — alternative map support: relief (via map_relief)
- Template:Infobox cave — alternative map support: relief
- Template:Infobox cemetery
- Template:Infobox civil conflict
- Template:Infobox climbing area
- Template:Infobox climbing route — alternative map support: relief
- Template:Infobox church — alternative map support: relief
- Template:Infobox concentration camp
- Template:Infobox convention center
- Template:Infobox cycling championship
- Template:Infobox dam — alternative map support: relief
- Template:Infobox desalination plant
- Template:Infobox disputed islands
- Template:Infobox earthquakes in date
- Template:Infobox Egyptian tomb
- Template:Infobox factory
- Template:Infobox fault
- Template:Infobox forest — alternative map support: relief
- Template:Infobox former Arab villages in Palestine
- Template:Infobox glacier — alternative map support: relief (displays relief image unless map_relief=0)
- Template:Infobox golf facility — alternative map support: relief
- Template:Infobox Hindu temple
- Template:Infobox historic site — alternative map support: relief (via map_relief)
- Template:Infobox holiday camp
- Template:Infobox holocaust event
- Template:Infobox hospital — alternative map support: relief
- Template:Infobox hut — alternative map support: relief
- Template:Infobox Icelandic municipality
- Template:Infobox islands — alternative map support: relief
- Template:Infobox landform
- Template:Infobox lighthouse — alternative map support: relief
- Template:Infobox Manchester Metrolink station
- Template:Infobox military conflict — alternative map support: relief (via map_relief)
- Template:Infobox military installation — alternative map support: relief (via map_relief)
- Template:Infobox military operation
- Template:Infobox mill building
- Template:Infobox mine
- Template:Infobox mining
- Template:Infobox monastery
- Template:Infobox monument
- Template:Infobox motorway services
- Template:Infobox mountain — alternative map support: relief (displays relief image unless map_relief=0)
- Template:Infobox mountain pass — alternative map support: relief (displays relief image unless map_relief=0)
- Template:Infobox museum — alternative map support: relief (via map_relief)
- Template:Infobox New York City Subway station
- Template:Infobox New Zealand suburbs
- Template:Infobox observatory
- Template:Infobox oil field — alternative map support: relief
- Template:Infobox oil refinery — alternative map support: relief
- Template:Infobox park — alternative map support: relief
- Template:Infobox port
- Template:Infobox power station — alternative map support: relief
- Template:Infobox presidential library
- Template:Infobox prison
- Template:Infobox protected area — alternative map support: relief
- Template:Infobox pyramid
- Template:Infobox rail accident
- Template:Infobox reactor
- Template:Infobox religious building — alternative map support: relief
- Template:Infobox residential college
- Template:Infobox restaurant
- Template:Infobox river
- Template:Infobox Russian inhabited locality
- Template:Infobox school
- Template:Infobox Scottish island
- Template:Infobox sedimentary basin
- Template:Infobox settlement — alternative map support: relief (via pushpin_relief) and AlternativeMap (via pushpin_image)
- Template:Infobox Shinto shrine
- Template:Infobox ski area
- Template:Infobox South African town
- Template:Infobox Spanish missions in the Americas
- Template:Infobox sports rivalry
- Template:Infobox spring — alternative map support: relief
- Template:Infobox station
- Template:Infobox street
- Template:Infobox superfund
- Template:Infobox terrestrial impact site
- Template:Infobox transmitter
- Template:Infobox tunnel
- Template:Infobox valley — alternative map support: relief
- Template:Infobox waterfall — alternative map support: relief
- Template:Infobox waterlock
- Template:Infobox university
- Template:Infobox urban feature
- Template:Infobox venue
- Template:Infobox wildfire
- Template:Infobox World Heritage Site — alternative map support: relief
- Template:Infobox WorldScouting