ಟೆಂಪ್ಲೇಟು:Location map SwedenCIAx
From Wikipedia, the free encyclopedia
name | Sweden | ||
---|---|---|---|
x | (100*( ({{{3}}} - (22.20 + 11.20)/2)*((1 - 0.675)*({{{2}}} - 69.45)/(54.78 - 69.45) + 0.675) + (22.20 + 11.20)/2 - 11.20)/(22.20 - 11.20)) | ||
y | (100*({{{2}}} - 69.45)/(54.78 - 69.45)) | ||
image | Sweden CIA map extended.gif | ||
Usage
The map definition, {{Location map SwedenCIAx}}
, is intended for overlaying markers and labels on similar maps of Sweden. It is a map locator for the Sweden CIA-extended map, skewing northern longitudes.
Some of the related mapping procedures are:
- Template:Location map - puts symbols/labels on an image.
- Template:Location map many - puts up to 5 symbols/labels on an image.
This template uses the mapping procedure "Template:Location map" which must be invoked with parameter "SwedenCIAx" to process the options before it uses this template. Specify each of the individual parameters by using vertical bars: {{Location map | SwedenCIAx | ...}}.
Map parameters | ||
y | (100*({{{2}}} - 69.45)/(54.78 - 69.45)) | formula for y percentage |
x | (100*( ({{{3}}} - (22.20 + 11.20)/2)*((1 - 0.675)*({{{2}}} - 69.45)/(54.78 - 69.45) + 0.675) + (22.20 + 11.20)/2 - 11.20)/(22.20 - 11.20)) | formula for x percentage |
Because the map is not equirectangular, the longitude coordinate will need to be adjusted/skewed to match northern-area mapping of rectangular position (if trying "Template:Location map"). Both the latitude and longitude can be skewed by using Template:Location map, which processes "lat_skew" to arc latitude coordinates near the
map edges.- WARNING: Having too much text (over 1.5kb) in Template:Location_map_SwedenCIAx can kill mapping templates that are using it. Tests with 14 interwiki language-links killed the mapping templates; move any interwiki links to the {{doc}} file.
- See:
{{Location map}}
for description of skew/parameters, and for generic mapping parameters.
Examples
Kiruna
The example shows the correct placement of Kiruna when SwedenCIAx is used with {{Location map}}
.
Note that the label for "Kiruna" has been skewed onto the mark, due to narrow longitudes far north (on non-equirectangular map). Longitude position is calculated from the map center, so center towns would be positioned more accurately (see example below for Stockholm). A "skew" factor has been implemented to scale longitude smaller near polar latitudes (relative to map height), and position longitudes from map center, rather than from left-side base longitude.
Lua error in ಮಾಡ್ಯೂಲ್:Location_map at line 525: Unable to find the specified location map definition: "ಮಾಡ್ಯೂಲ್:Location map/data/SwedenCIAx" does not exist.
{{Location map | SwedenCIAx | float = right | caption = Example using Location map | label_size = 90 | background = #CCCC11 | lat_min=51 | lat_sec=17 | lon_min=13 | lon_sec=22 }}
Stockholm
The example shows the correct placement of Stockholm when SwedenCIAx is used with {{Location map}}
.
Lua error in ಮಾಡ್ಯೂಲ್:Location_map at line 525: Unable to find the specified location map definition: "ಮಾಡ್ಯೂಲ್:Location map/data/SwedenCIAx" does not exist.
{{Location map| SwedenCIAx | float = left | caption = Example using Location map | label_size = 110 | background = #5599EE | lat_min=21 | lon_min=4 }}
Gotland on wrong map
The example on the left shows the correct placement of Gotland on the default map image. The example on the right shows the incorrect placement when a map using different border coordinates is specified via the AlternativeMap parameter.
Lua error in ಮಾಡ್ಯೂಲ್:Location_map at line 525: Unable to find the specified location map definition: "ಮಾಡ್ಯೂಲ್:Location map/data/SwedenCIAx" does not exist. Lua error in ಮಾಡ್ಯೂಲ್:Location_map at line 525: Unable to find the specified location map definition: "ಮಾಡ್ಯೂಲ್:Location map/data/SwedenCIAx" does not exist.
{{Location map | SwedenCIAx | float = left | label_size = 110 | background = #FFFF99 | caption = "Gotland" put on wrong-scale map | lat_min=30 | lon_min=33 }} {{Location map | SwedenCIAx | AlternativeMap = Sweden-eq.png | float = right | label_size = 110 | background = #FFFF99 | caption = "Gotland" put on wrong-scale map | lat_min=30 | lon_min=33 }}
Prior stretched map
The prior mapping template uses stretched maps of Sweden, which distort the northern distances while stretching longitude lines to become parallel to the top of the map:
- Stretched/widened map: Template:Location map Sweden.
Such stretched, equirectangular maps are still accurate for southern locations in Sweden, up to around Stockholm; however, northern locations might be exaggerated, stretched over 20% further apart than reality.
See also
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.