ಟೆಂಪ್ಲೇಟು:Location map SwedenCIAx
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 526: Unable to find the specified location map definition: "Module:Location map/data/SwedenCIAx" does not exist.
{{Location map | SwedenCIAx | width = 250 | float = right | caption = Example using Location map | label = Kiruna | label_size = 90 | position = bottom | background = #CCCC11 | lat_deg=67 | lat_min=51 | lat_sec=17 | lon_deg=20 | 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 526: Unable to find the specified location map definition: "Module:Location map/data/SwedenCIAx" does not exist.
{{Location map| SwedenCIAx | width = 250 | float = left | caption = Example using Location map | label = Stockholm | label_size = 110 | position = bottom | background = #5599EE | lat_deg=59 | lat_min=21 | lon_deg=18 | 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 526: Unable to find the specified location map definition: "Module:Location map/data/SwedenCIAx" does not exist. Lua error in ಮಾಡ್ಯೂಲ್:Location_map at line 526: Unable to find the specified location map definition: "Module:Location map/data/SwedenCIAx" does not exist.
{{Location map | SwedenCIAx | width = 200 | float = left | label = Gotland | label_size = 110 | position = top | background = #FFFF99 | caption = "Gotland" put on wrong-scale map | lat_deg=57 | lat_min=30 | lon_deg=18 | lon_min=33 }} {{Location map | SwedenCIAx | AlternativeMap = Sweden-eq.png | width = 200 | float = right | label = Gotland | label_size = 110 | position = top | background = #FFFF99 | caption = "Gotland" put on wrong-scale map | lat_deg=57 | lat_min=30 | lon_deg=18 | 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.