User:Wikid77/Template:Location map SwedenCIAx

From Wikipedia, the free encyclopedia

This map definition, Template:Location_map_SwedenCIAx, is intended for overlaying markers and labels on similar maps of Sweden. This is a map locator for the Sweden CIA-extended map, skewing northern longitudes.

Some of the related mapping procedures are:

This template uses the mapping procedure "Template:Location_map_skew" 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 skew | SwedenCIAx | ...}}.

Map for Sweden CIA-extended
Map for Sweden CIA-extended
Map parameters
Top 69.45 latitude at top of map
Bottom 54.78 latitude at bottom of map
Left 11.2 longitude at left edge of map
Right 22.2 longitude at right edge of map
skew 0.675 skew factor to narrow longitudes at top
lat_skew 1.300 skew factor to arc latitudes at edges

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_polarx, which processes "lat_skew" to arc latitude coordinates near the map edges.

See: {{Location map skew}} for description of skew/parameters, or see template
  {{Location map polarx}} for polar parameters, or see Examples below.

[edit] Examples

Two examples, showing "Stockholm" & "Kiruna" with map position aligned (by using parameters "float=left" and "float=right"). Note that the label for "Kiruna" has been skewed onto the mark, due to narrow longitudes far north (on non-equirectangular map).

Stockholm (SwedenCIAx)
Stockholm
Stockholm
Show "Stockholm" on map


Kiruna (SwedenCIAx)
Kiruna
Kiruna
Show "Kiruna" on map

Longitude position is calculated from the map center, so center towns would be positioned more accurately. 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.



{{Location map skew | SwedenCIAx
| label = Stockholm  | label_size = 110
| caption = Show "Stockholm" on map
| lat_deg=59 | lat_min=21 | lon_deg=18 | lon_min=4
| background = <!blue> #5599EE
| float = left | width = 205
}}
{{Location map skew | SwedenCIAx
| label = Kiruna  | label_size = 90
| caption = Show "Kiruna" on map
| lat_deg=67 | lat_min=51 | lat_sec=17
| lon_deg=20 | lon_min=13 | lon_sec=22
| background = <!gold> #CCCC11
| float = right | width = 205
}}

[edit] Example of Gotland on Wrong Map

Gotland (SwedenCIAx)
Gotland
Gotland
"Gotland" put on wrong-scale map

Example labeling "Gotland" on wrong-scale map:

{{Location map
| SwedenCIAx
| label = Gotland | position = top
| label_size = <!--percent 0-900%--> 128
| caption = "Gotland" put on wrong-scale map
| lat_deg=57  | lat_min=30
| lon_deg=18 | lon_min=33
| background = #FFFF99
| float = right
| width = 220
| AlternativeMap = Sweden-eq.png
}}

[edit] 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 by about 20% further apart than reality. -Wikid77 20:56, 6 November 2007 (UTC)