ಟೆಂಪ್ಲೇಟು:Location map CanadaGeo
name | CanadaGeo | ||
---|---|---|---|
x | 43.337724969237172 - 2.056739941370653*({{{2}}} - 90.076056288799123)*sin(0.014911471311070*({{{3}}} - ({{{3}}} > 0)*360 + 94.820677904662404)) | ||
y | 0.309016119058895 - 2.056739941370653*({{{2}}} - 90.076056288799123)*cos(0.014911471311070*({{{3}}} - ({{{3}}} > 0)*360 + 94.820677904662404)) | ||
image | Canada_geopolitical_map_trim.jpg
| ||
This map definition, Template:Location_map_CanadaGeo, is intended for overlaying markers/labels on similar maps of ಕೆನಡಾ, using coordinates of 40.6-92.5 for latitude and 55.1-125.1 W for longitude.
Some of the related mapping procedures are:
- Template:Location map - puts symbols/labels on an image with converging polar longitudes & arcing latitudes.
- Template:Location map many - puts up to 5 symbols/labels on an image, using polar longitudes/latitudes.
Map parameters | ||
x | 43.337724969237172 - 2.056739941370653*({{{2}}} - 90.076056288799123)*sin(0.014911471311070*({{{3}}} - ({{{3}}} > 0)*360 + 94.820677904662404)) | formula for x coordinate |
y | 0.309016119058895 - 2.056739941370653*({{{2}}} - 90.076056288799123)*cos(0.014911471311070*({{{3}}} - ({{{3}}} > 0)*360 + 94.820677904662404)) | formula for y coordinate |
All mapping templates use similar parameters (see Examples):
- CanadaGeo - the first parameter is always the map name
- AlternativeMap - name of image (omit "Image:")
- caption=text - caption text along bottom of image
- width=250 - for image width (omit "px")
- label - movable label (can be padded " XX YY ")
- label_size - percent from 0-200 (default: 95)
- background - color of label (such as: darkorange or #4499DD)
- position=right - (or left, top, bottom) position of label at marker
- lat = 26.25 - for latitude 40.6-92.5 (higher towards top)
- long= -75.3 - for longitude 55.1-125.1 W (higher towards right)
- mark - name of image for marker symbol (omit "Image:")
- marksize - size of image for marker symbol (default: 8px, 1px=none)
- float=right (or left, center) - position of map formatted on page
Some common label background colors are: #CCCC55 for dim yellow,
- #44EE44 for lime green, #BBBBBB for gray,
- #44CCDD for light aqua, #DDDDDD for light gray (almost white),
- PaleGreen for pale green, PaleTurquoise, DarkOrange, etc.
- By default, the label is transparent overwriting the image.
For small lettering use label_size=80, for tiny words use 55. Note that the words in the label will wrap unless using "nbsp": DO NOT WRAP.
When specifying image "width=270" be sure to OMIT "px" (which causes the image to span the width of the screen) because "px" cannot (yet) be detected by the (new) MediaWiki language which processes those mapping templates.
See each specific mapping template for other parameters to pass.
Examples
[ಬದಲಾಯಿಸಿ]- Simple sintax
Lua error in ಮಾಡ್ಯೂಲ್:Location_map at line 526: Unable to find the specified location map definition: "Module:Location map/data/CanadaGeo" does not exist.
{{Location map|CanadaGeo|lat= |long=- |caption={{subst:PAGENAME}} in [[Canada]]}}
- Multiple labels
Lua error in ಮಾಡ್ಯೂಲ್:Location_map/multi at line 143: Unable to find the specified location map definition: "Module:Location map/data/CanadaGeo" does not exist.
{{Location map many | CanadaGeo| | caption = Vancouver, Quebec, Edmonton & Winnipeg | lon_shift = 4.1 | label=Vancouver | label_size=70 | background = <!--aqua-->#44CCDD | position=top<! left/right/bottom > | lat = 49.25 <!--40.6 to 92.5 --> | long= -123.1 <!--55.1 to 125.1W--> | mark=Green_pog.svg | marksize=10 <! default 8, 1=none > | label2=Quebec City | label2_size=70 | bg2 = DarkOrange | pos2= bottom <!or right/left/top > | lat2= 46.80 | long2 = -71.38 | mark2=Blue_pog.svg | mark2size=10<! marker size (8) > | label3=Alert | label3_size=70 | bg3 = PaleGreen | pos3=right | lat3= 82.46 | long3= -62.50 | mark3=Blue_pog.svg | mark3size=8 | label6=Edmonton | lat6 = 53.57 | long6 = -113.42 | label4=Winnipeg | label4_size=70 | bg4 = SkyBlue | pos4 =left | lat4 = 49.88 | long4 = -97.13 | mark4=Blue_pog.svg | mark4size=6 | label5=Churchill,_MB | lat5 = 58.76 | long5 = -94.12 | bg5 = #77EE77 | pos5 = top | mark5=Blue_pog.svg | mark5size=6 | width=430 <!--map width--> | float=right <!--left/center--></nowiki> }}
Lua error in ಮಾಡ್ಯೂಲ್:Location_map/multi at line 143: Unable to find the specified location map definition: "Module:Location map/data/CanadaGeo" does not exist.
{{Location map many | CanadaGeo| | width=320 <!--omit "px"--> | lon_shift = 4.1 | bottom= 41.3 | top= 91.1 | label=Quebec City | label_size=70 |pos=right | bg = DarkOrange | lat=46.48 | long= -71.38 | mark=Blue_pog.svg | marksize=10 | label2=Yellowknife | label2_size=70 | bg2=#DDDD44 | pos2=left | lat2=62.45|long2=-114.40 | mark2=Blue_pog.svg | mark2size=10<!default:8> | label3=Churchill,_MB | label3_size=70 | bg3=#77EE77 | pos3=right | lat3=58.76 |long3= -94.12 | mark3=Blue_pog.svg | mark3size=8 | label4=Alert | bg4=PaleGreen | pos4=right | label4_size=70 | skew4=0.00005 | lat4=82.46 | long4= -62.50 | mark4=Blue_pog.svg | mark4size=8 | label5=ArcticCircle | bg5=#99CCFF | pos5=top | label5_size=70 | skew5=0.00005 | lat5= 66.5 | long5= -90 | mark5=Blue_pog.svg | mark5size=8 | float=right <!--left/center--> | caption = Quebec east, Yellowknife in northwest, Churchill (center), Alert (top) }}
Other options
[ಬದಲಾಯಿಸಿ]It is possible to place markers/labels outside a map, by specifying latitude outside 38.4-95.5 or longitude coordinates beyond 55.1-125.1 W:
- Over longitude= -55.1 might push a label off-map to the right;
- Under longitude= -125.1 can push a label off-map to the left;
- Over latitude= 95.5 will push a label off-map to the top.
For templates that restrict coordinates, expand the minutes field: lat_deg=89.0 but lat_min=120 yielding a combined 91 degrees (60 minutes = 1 degree).
See also
[ಬದಲಾಯಿಸಿ]- Template:Superimpose - to label an image without a border box
- Template:Location map Canada