User:Wikid77/Template:Location map SwedenCIAskew
This map definition, Template:Location_map_SwedenCIAskew, 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:
- Template:Location_map_skew - puts symbols/labels on an image with converging longitudes.
- Template:Location_map_polarx - puts symbols/labels on an image with converging polar longitudes & arcing latitudes.
- Template:Location_map_many_polarx - puts up to 5 symbols/labels on an image, using polar longitudes/latitudes.
This template uses the mapping procedure "Template:Location_map_skew" which must be invoked with parameter "SwedenCIAskew" to process the options before it uses this template. Specify each of the individual parameters by using vertical bars: {{Location map skew | SwedenCIAskew | ...}}.
![](http://upload.wikimedia.org/wikipedia/commons/thumb/7/7a/Sweden_CIA_map_extended.gif/110px-Sweden_CIA_map_extended.gif)
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.
Examples
[edit]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).
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 | SwedenCIAskew | 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 | SwedenCIAskew | 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 }}
Example of Gotland on Wrong Map
[edit]Lua error in Module:Location_map at line 526: Unable to find the specified location map definition: "Module:Location map/data/SwedenCIAskew" does not exist. Example labeling "Gotland" on wrong-scale map:
- {{Location map
- | SwedenCIAskew
- | 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
- }}
Prior stretched map
[edit]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)