User:Wikid77/Template:Location map many/doc

From Wikipedia, the free encyclopedia

This is a documentation subpage for User:Wikid77/Template:Location map many (see that page for the user itself).
It contains usage information, categories and other content that is not part of the original user page.

Creates a location map as a composite image of an existing map in equirectangular projection, with multiple (up to 9) markers and optional labels superimposed onto it. This template functions in the style of Template:Location_map, but allows 9 markers and labels (rather than just one marker). Note: For brevity, parameters "pos" & "bg" are aliases (for "position" & "background").

Also see: For an unlimited list of markers/labels, see: Template:Location_map+,
which specifies points as a coded template list of markers/labels.

Contents

[edit] Usage

{{Location map many
|locname   (selected from templates named "Location_map_<locname>")
------------------------------------------- 1st label & marker
|label      = 1st label text
|label_size = 1st label font size, percent (such as "85")
|position   = pos = left or right or top or bottom – position of
              1st label relative to 1st mark (default: right)
|background = bg = background color for 1st label, defaults transparent
|lon_dir=W    1st longitude direction: W=west, E=east (default)
|lat_dir=S    1st latitude direction: S=south, N=north (default)
|lat_deg    = 1st latitude degrees (negative to indicate south)
|lat_min    = 1st latitude minutes (negative to indicate south)
|lat_sec    = 1st latitude seconds (or use combined lat)
|lon_deg    = 1st longitude degrees (negative to indicate west)
|lon_min    = 1st longitude minutes (negative to indicate west)
|lon_sec    = 1st longitude seconds (or use combined long)
|lat        = 1st latitude (as decimal; negative for south latitude)
|long       = 1st longitude (as decimal; negative for west longitude)
|mark       = 1st marker image file name, a red dot by default
|marksize   = 1st marker size, default=8 (pixels wide)
|markhigh   = 1st marker height, default=8
------------------------------------------- 2nd label & marker
|label2      = 2nd label text
|label2_size = 2nd label font size, percent (such as "85")
|position2   = pos2 = left or right or top or bottom – position of
               2nd label relative to 2nd mark (default: right)
|background2 = bg2 = background color for 2nd label, defaults transparent
|lat2_deg    = 2nd latitude degrees (negative to indicate south)
|lat2_min    = 2nd latitude minutes (negative to indicate south)
|lat2_sec    = 2nd latitude seconds (or use combined lat2)
|lon2_deg    = 2nd longitude degrees (negative to indicate west)
|lon2_min    = 2nd longitude minutes (negative to indicate west)
|lon2_sec    = 2nd longitude seconds (or use combined long2)
|lat2        = 2nd latitude (as decimal; negative for south latitude)
|long2       = 2nd longitude (as decimal; negative for west longitude)
|mark2       = 2nd marker image file name, a red dot by default
|mark2size   = 2nd marker size, default=8 (pixels wide)
|mark2high   = 2nd marker height, default=8
------------------------------------------- 3rd label & marker
|label3      = 3rd label text
|label3_size = 3rd label font size, percent (such as "120")
|pos3, bg3   = 3rd label position & background color
   (... similar latitude/longitude parameters named "~3" ...)
|mark3       = 3rd marker image file name, a red dot by default
|mark3size   = 3rd marker size, default=8 (pixels wide)
|mark3high   = 3rd marker height, default=8
   (...repeat until label9/mark9...)
-------------------------------------------
|border     = border color or none
|caption    = map caption; for no caption enter "caption=";
              if omitted, then the caption will be auto-generated
              as: "<marker #1 label> (<location map name>)"
|float      = left or right or center or none for map placement
|width      = map width for display size
|AlternativeMap = Alternative map file name (changes background map,
             border coordinates are determined based on the map name);
             this is only recommended for use in templates
}}

Parameter locname refers to {Template:Location map locname} containing the image name and coordinates of a particular map.

[edit] Available maps

List of live templates named Template:Location_map_<locname> (without "Template:" prefix here):


Location map Location map+ Location map+/doc
Location map/Info Location map/Temp/Infobox Location map/doc
Location map 100x100 Location map Afghanistan Location map Africa
Location map Albania Location map Algeria
Location map American Samoa
Location map Andorra Location map Angola Location map Argentina
Location map Argentina Buenos Aires Location map Argentina Buenos Aires Province
Location map Armenia
Location map Aruba Location map Australia Location map Australia New South Wales
Location map Australia Northern Territory Location map Australia Queensland Location map Australia South Australia
Location map Australia Tasmania Location map Australia Victoria Location map Australian Capital Territory
Location map Austria Location map Austria EBEL Location map Austria topo
Location map Azerbaijan Location map Bahrain Location map Bangladesh
Location map Barbados Location map Belarus
Location map Belgium Location map Belize Location map Benin
Location map Bhutan
Location map Bolivia Location map Borneo Topography Location map Bosnia
Location map Botswana Location map Brazil
Location map Brunei
Location map Bulgaria Location map Burkina Faso
Location map Burma Location map Burundi
Location map Cambodia
Location map Cameroon Location map CanadaGeo
Location map CanadaGeo/doc Location map CanadaTerrain Location map CanadaTerrain/doc
Location map Canada British Columbia Location map Canada British Columbia/doc Location map Canada Calgary
Location map Canada Calgary/doc Location map Canada Edmonton Location map Canada Edmonton/doc
Location map Canada Lethbridge Location map Canada Lethbridge/doc Location map Canada Manitoba
Location map Canada Manitoba/doc Location map Canada Montreal Location map Canada Montreal/doc
Location map Canada New Brunswick Location map Canada New Brunswick/doc Location map Canada Newfoundland
Location map Canada Newfoundland/doc Location map Canada Nova Scotia Location map Canada Nova Scotia/doc
Location map Canada Ontario Location map Canada Ontario/doc Location map Canada Ottawa
Location map Canada Ottawa/doc Location map Canada PEI Location map Canada PEI/doc
Location map Canada Saskatchewan Location map Canada Saskatchewan/doc Location map Canada Vancouver
Location map Canada Vancouver/doc Location map Cape Verde Location map Central African Republic
Location map Chad
Location map Chile Location map China Location map China Guangdong
Location map Colombia
Location map Costa Rica
Location map Croatia Location map Croatia/doc
Location map Cuba Location map Cuba1 Location map Cuba1/doc
Location map Cuba Havana Location map Czech Republic
Location map Côte d'Ivoire
Location map Democratic Republic of the Congo Location map Denmark Location map DenmarkCIAx
Location map Denmark Faroe Islands
Location map Djibouti Location map Dominica
Location map Dominican Republic Location map Dubai
Location map Earth
Location map East Timor
Location map Ecuador
Location map Egypt Location map Egypt/doc
Location map El Salvador Location map Equatorial Guinea Location map Eritrea
Location map Estonia Location map Ethiopia
Location map European Parliament constituencies 2007
Location map Finland
Location map France Location map France Paris Location map French Guiana
Location map Gabon Location map Gambia
Location map Georgia (country) Location map Germany
Location map Germany2 Location map GermanyCIAx Location map GermanyCIAx/doc
Location map GermanyNeckar Location map GermanyRhine Location map GermanyWeser
Location map Germany Berlin Location map Ghana Location map Gibraltar
Location map Greece Location map Greece (with prefectures) Location map Greece Dimos Edessas
Location map Greece Dimos Skydras Location map Greenland Location map Grenada
Location map Guatemala Location map Guayana
Location map Guinea Location map Guinea-Bissau Location map Guyana
Location map Haiti
Location map Havana/doc
Location map Honduras Location map Hungary
Location map Iceland
Location map India Location map India Bihar Location map India Chennai
Location map India Karnataka Location map India Kerala Location map India Mumbai
Location map India Nagpur Location map India Orissa Location map India Rajasthan
Location map India Tamil Nadu Location map India Tripura Location map India Uttarakhand
Location map Indonesia Location map Indonesia (provinces)
Location map Indonesia Sulawesi Topography Location map Iran
Location map Iraq Location map Ireland Location map Isle of Man
Location map Israel
Location map Italy Location map Italy2 Location map Italy small
Location map Jamaica Location map Japan Location map Java Topography
Location map Jordan
Location map Kazakhstan
Location map Kenya Location map Kosovo
Location map Kuwait Location map Kyrgyzstan
Location map Laos Location map Latvia Location map Lebanon
Location map Lesotho
Location map Liberia Location map Libya
Location map Lithuania Location map Lithuania2
Location map Madagascar
Location map Malawi Location map Malaysia
Location map Mali Location map Malta Location map Maluku Topography
Location map Marshall islands
Location map Mauritania Location map Mauritius
Location map Mexico
Location map Moldova
Location map Mongolia Location map Montenegro
Location map Morocco
Location map Morocco Northern Morocco Location map Mozambique
Location map Namibia
Location map Nepal Location map Netherlands Location map Netherlands Amsterdam metro station
Location map Netherlands Dutch railway station Location map Netherlands Randstad N Location map Netherlands Randstad NO
Location map Netherlands Randstad ZW
Location map New Zealand
Location map New Zealand Marlborough Location map New Zealand North Island Location map New Zealand Northland
Location map New Zealand South Island Location map New Zealand Taranaki Location map New Zealand transparent
Location map Nicaragua
Location map Niger Location map Nigeria Location map Niue
Location map North Korea
Location map Northern Ireland
Location map Norway
Location map Oman
Location map Pakistan Location map Palestine
Location map Panama Location map Papua New Guinea Location map Papua Topography
Location map Paraguay
Location map Peru Location map Philippines Location map Poland
Location map Portugal Location map Portugal Azores Location map Portugal Madeira
Location map Qatar
Location map Republic of Macedonia Location map Republic of the Congo
Location map Romania Location map Russia
Location map Russia Altai Krai Location map Russia Arkhangelsk Oblast Location map Russia Dagestan
Location map Russia Karelia Location map Russia Krasnodar Krai Location map Russia Leningrad Oblast
Location map Russia Lipetsk Oblast Location map Russia Moscow Oblast Location map Russia Murmansk Oblast
Location map Russia Novgorod Oblast Location map Russia Primorsky Krai Location map Russia Ryazan Oblast
Location map Russia Saint Petersburg Location map Russia Smolensk Oblast Location map Russia Vladimir Oblast
Location map Russia Vologda Oblast Location map Russia Voronezh Oblast
Location map Rwanda Location map Sao Tome and Principe
Location map Saskatchewan/sandbox
Location map Saskatchewan/testcases Location map Saudi Arabia Location map Scotland
Location map Scotland mainland Location map Senegal Location map Serbia
Location map Seychelles
Location map Sierra Leone Location map Slovakia Location map Slovenia
Location map Somalia Location map South Africa
Location map South Korea
Location map Spain Location map Sri Lanka
Location map Sudan
Location map Sumatra Topography Location map Suriname
Location map Swaziland Location map Sweden
Location map Sweden/doc Location map SwedenCIAx Location map SwedenCIAx/doc
Location map Switzerland Location map Switzerland2 Location map Syria
Location map TEMP-Japan Location map Taiwan Location map Tajikistan
Location map Tanzania
Location map Thailand Location map Togo Location map Trinidad and Tobago
Location map Tunisia Location map Turkey
Location map Turkmenistan Location map UAE
Location map USA Location map USA Alabama Location map USA Alabama/doc
Location map USA Alaska Location map USA Arizona Location map USA Arkansas
Location map USA California Location map USA Colorado Location map USA Connecticut
Location map USA Delaware Location map USA District of Columbia Location map USA Florida
Location map USA Georgia Location map USA Georgia/doc Location map USA Grand Forks
Location map USA Hawaii Location map USA Idaho Location map USA Illinois
Location map USA Illinois Peoria County Location map USA Indiana Location map USA Iowa
Location map USA Kansas Location map USA Kentucky Location map USA Louisiana
Location map USA Maine Location map USA Maryland Location map USA Massachusetts
Location map USA Michigan Location map USA Minnesota Location map USA Mississippi
Location map USA Missouri Location map USA Montana Location map USA Nebraska
Location map USA Nevada Location map USA New Hampshire Location map USA New Jersey
Location map USA New Mexico Location map USA New York Location map USA New York Adirondack Park
Location map USA New York City Location map USA North Carolina Location map USA North Dakota
Location map USA Ohio Location map USA Oklahoma Location map USA Oregon
Location map USA Pennsylvania Location map USA Puerto Rico Location map USA Rhode Island
Location map USA South Carolina Location map USA South Dakota Location map USA Tennessee
Location map USA Texas Location map USA Utah Location map USA Vermont
Location map USA Virgin Islands Location map USA Virginia Location map USA Washington
Location map USA West Virginia Location map USA Wisconsin Location map USA Wyoming
Location map Uganda
Location map Ukraine Location map Ukraine Alushta Location map Ukraine Crimea
Location map Ukraine Yalta Location map United Arab Emirates Location map United Kingdom
Location map United Kingdom Bedfordshire Location map United Kingdom Berkshire Location map United Kingdom Bristol
Location map United Kingdom Buckinghamshire Location map United Kingdom Cambridgeshire Location map United Kingdom Cheshire
Location map United Kingdom Cornwall Location map United Kingdom County Durham Location map United Kingdom Cumbria
Location map United Kingdom Derbyshire Location map United Kingdom Devon Location map United Kingdom Dorset
Location map United Kingdom East Riding of Yorkshire Location map United Kingdom East Sussex Location map United Kingdom Edinburgh
Location map United Kingdom Essex Location map United Kingdom Falkland Islands Location map United Kingdom Forest of Bowland
Location map United Kingdom Gloucestershire Location map United Kingdom Greater Belfast
Location map United Kingdom Greater London Location map United Kingdom Greater London postal Location map United Kingdom Greater Manchester
Location map United Kingdom Hampshire Location map United Kingdom Herefordshire Location map United Kingdom Hertfordshire
Location map United Kingdom Isle of Wight Location map United Kingdom Kent Location map United Kingdom Lancashire
Location map United Kingdom Leicestershire Location map United Kingdom Lincolnshire Location map United Kingdom Manchester
Location map United Kingdom Merseyside Location map United Kingdom Norfolk Location map United Kingdom North Yorkshire
Location map United Kingdom Northamptonshire Location map United Kingdom Northumberland Location map United Kingdom Nottinghamshire
Location map United Kingdom Oldham Location map United Kingdom Outer Hebrides Location map United Kingdom Oxford (central)
Location map United Kingdom Oxfordshire Location map United Kingdom Rutland Location map United Kingdom Sheffield
Location map United Kingdom Shropshire Location map United Kingdom Somerset Location map United Kingdom South Yorkshire
Location map United Kingdom Southampton Location map United Kingdom Staffordshire Location map United Kingdom Suffolk
Location map United Kingdom Surrey Location map United Kingdom Tyne and Wear Location map United Kingdom Wales Dyfed
Location map United Kingdom Wales Gwynedd Location map United Kingdom Warwickshire Location map United Kingdom West Midlands
Location map United Kingdom West Sussex Location map United Kingdom West Yorkshire Location map United Kingdom Wiltshire
Location map United Kingdom Worcestershire Location map Uruguay
Location map Uzbekistan
Location map Venezuela
Location map Vietnam
Location map Western Australia Location map Western Sahara
Location map Yemen Location map Zambia
Location map Zimbabwe Location map end Location map many
Location map many/doc Location map many polarx Location map marker
Location map of Location map of Iran Location map polarx
Location map polarx/doc Location map skew Location map skew/doc
Location map start Location map~

[edit] Creating new maps

  1. Find an appropriate blank map in equirectangular projection (otherwise, coordinates will drift off, typically further north)
  2. Create a template named "Template:Location_map_locname" (copy the content of any other map template into it and enter appropriate values).
  3. Set default parameter values (using those parameter names), such as setting "mark" with image-file name and "marksize" for pixels wide/tall, or set default label font size ("label_size = 78" percent).
  4. Parameter names not used by "Template:Location_map" will be ignored by it, and only used for multiple-markers (such as defaulting "label2_size = 78" percent, or "mark2size=7" pixels).

[edit] Examples

[edit] Map with label "Pag" and "Anytown" (degrees)

Pag (Croatia)
{{Location map many
 |Croatia
 |label=Pag |marksize=8 |markhigh=8
   |pos=right    | bg=yellow
   |lat_deg=44   | lat_min=26
   |lon_deg=15   | lon_min=3
 |label2=Anytown_Anywhere
   |mark2size=45 | mark2high=30
   |mark2=
     Rouge-Admin JollyRoger.svg
   |pos2=top     | bg2=white
   |lat2_deg=46  | lat2_min=30
   |lon2_deg=17  | lon2_min=30
 |width=260
 |float=right
}}
Pag (Croatia)
Pag
Pag
Anytown_Anywhere
Anytown_Anywhere
Pag (Croatia)

[edit] Maps with 3 labels (decimal)

Pag (Croatia)
{{Location map many | Croatia
 | label=Pag | position=bottom
      | lat=44.44  | long=15.05
      | marksize=29 | markhigh=29
      | label_size=250
 | label2=Anytown
      | pos2=bottom | bg2=yellow
      | lat2=45.86  | long2=17.10
      | mark2size=8 | mark2high=8
      | background2=yellow
 | label3=Anytown2 |label3_size=60
      | pos3=bottom | bg3=lightgreen
      | lat3=46.23  | long3=18.43
      | mark3size=35 | mark3high=35
 | width=260 | float=right
}}
Pag (Croatia)
Pag
Pag
Anytown
Anytown
Anytown2
Anytown2
Pag (Croatia)

Pag (Croatia)
{{Location map many | Croatia
 | label=Pag | position=bottom
      | lat=44.44  | long=15.05
      | marksize=4 | markhigh=4
      | label_size=99
 | label2=Anytown | label2_size=210
      | pos2=bottom | bg2=yellow
      | lat2=45.10  | long2=17.50
      | mark2size=6 | mark2high=6
      | background2=yellow
 | label3=Anytown2 |label3_size=50
      | pos3=bottom | bg3=lightgreen
      | lat3=46.23  | long3=18.43
      | mark3size=2 | mark3high=2
 | width=260 | float=right
}}
Pag (Croatia)
Pag
Pag
Anytown
Anytown
Anytown2
Anytown2
Pag (Croatia)

[edit] Map with some labels outside map

Pag (Croatia)
{{Location map many | Croatia
 | label=Pag | position=right
      | lat=44.44  | long=15.05
      | marksize=8 | markhigh=8
 | label2=Anytown
      | pos2=bottom | bg2=yellow
      | lat2=47.40  | long2=12.80
      | marksize=8 | markhigh=8
      | background2=yellow
 | label3=Anytown2
      | pos3=top   | bg3=lightgreen
      | lat3=41.98 | long3=18.43
 | label4=North Croatia | pos4=left
      | mark4size=0 | bg4=lightgreen
      | lat4=46.22  | long4=17.7
 | width=260 | float=right
}}
Pag (Croatia)
Pag
Pag
Latitude#2 (47.40) > map max(47.26).

Longitude#2(12.80) < map min(13.21).

Anytown
Anytown
Latitude#3 (41.98) < map min(42.08).


Anytown2
Anytown2
North Croatia
Pag (Croatia)

[edit] Map with 9 markers (decimal)

Pag (Croatia)
{{Location map many | Croatia
 | label=Pag | position=right
      | lat=44.44 | long=15.05
 | label2=Anytown
      | pos2=bottom| label2_size=110
      | lat2=45.86 | long2=17.50
      | background2=yellow
 | label3=Anytown2
      | pos3=top  | label3_size=290
      | lat3=46.23 | long3=18.43
      | background3=green
 | mark4=Diamond_sheer_black_20.gif
      | mark4size=19 | mark4high=17
      | label4=44.0 (latitude)
      | lat4=44.00 | long4=13.5
 | mark5=Diamond_sheer_black_20.gif
      | mark5size=20 | mark5high=20
      | label5=44.5
      | lat5=44.50 | long5=13.5
 | mark6=Diamond_sheer_black_20.gif
      | mark6size=20 | mark6high=20
      | label6=45.0
      | lat6=45.00 | long6=13.5
 | mark7=Diamond_sheer_black_20.gif
      | mark7size=20 | mark7high=20
      | label7=45.5
      | lat7=45.50 | long7=13.5
 | mark8=Diamond_sheer_black_20.gif
      | mark8size=20 | mark8high=20
      | label8=46.0
      | lat8=46.00 | long8=13.5
 | mark9=Diamond_sheer_black_20.gif
      | mark9size=20 | mark9high=20
      | label9=46.5
      | lat9=46.50 | long9=13.5
 | width=260 | float=right
}}
Pag (Croatia)
Pag
Pag
Anytown
Anytown
Anytown2
Anytown2
44.0 (latitude)
44.0 (latitude)
44.5
44.5
45.0
45.0
45.5
45.5
46.0
46.0
46.5
46.5
Pag (Croatia)

[edit] Map with custom label and text background

Imotski
{{Location map many | Croatia
 |label=Imotski
 |lat=43.44
 |long=17.21
 |position=right
 |width=280
 |float=right
 |background=#FFFFDD
 |caption=Imotski in Croatia
 }}
Imotsky (Croatia)
Imotsky
Imotsky
Imotski in Croatia

[edit] Various markers on Sweden

Visby/Kiruna (Sweden)
{{Location map many
 | SwedenCIAx
 | caption = Show Visby/Kiruna Sweden 
 | label = &nbsp;Visby&nbsp;
   | label_size = <!-- 0-900%--> 78
   | mark=Blue pog.svg | marksize=8
   | lat_deg=57 | lat_min=38
   | lon_deg=18 | lon_min=17
   | bg = <!--blue-->#9999EE | pos=right
 | label2=Stockholm
   | mark2=Blue pog.svg | mark2size=9
   | pos2=left   | label2_size=77
   | lat2_deg=59 | lat2_min=21
   | lon2_deg=18 | lon2_min=4
   | bg2=yellow        
 | label3=Kiruna  | skew3=0.885
   | mark3=X_sheer_red_17.gif
   | mark3size=17 | mark3high=17
   | pos3=left    | label3_size=144
   | lat3_deg=67 | lat3_min=51
   | lat3_sec=17
   | lon3_deg=20 | lon3_min=13
   | lon3_sec=22
   | bg3 = <!--gold-->#CCCC11
 | label4=Anytown2
   | pos4=bottom | label4_size=100
   | lat4=63.00 | long4=17.50
   | bg4=lightgreen | mark4size=33
   | mark4=Circle_sheer_red_33.gif
 | label5=Anytown3
   | pos5=left | label5_size=120
   | lat5=65.00 | long5=17.50
   | bg5=lightgreen | mark5size=33
   | mark5=Circle_sheer_red_33.gif
 | label6=Anytown4
   | pos6=top | label6_size=120
   | lat6=63.00 | long6=14.50
   | bg6=darkorange | mark6size=7
   | mark6=Green pog.svg
 | float = right
 | width = <!--show small--> 195
}}
 Visby  (SwedenCIAx)
 Visby 
 Visby 
Stockholm
Stockholm
Kiruna
Kiruna
Anytown2
Anytown2
Anytown3
Anytown3
Anytown4
Anytown4
Show Visby/Kiruna Sweden

[edit] Map with enlarged marker and label

Pag (Croatia)
{{Location map many | Croatia
 |label=Pag
 |label_size=200
 |lat=44.44
 |long=15.05
 |marksize=14 | position=right
 |width=260
 |float=right
 |background=#FFFFDD
 |caption=Pag Island in Croatia
 }}
Pag (Croatia)
Pag
Pag
Pag Island in Croatia

[edit] Map with no caption

Brčko (Bosnia and Herzegovina)
{{Location map
 |Bosnia
 |label=Brčko
 |position=left
 |width=150
 |lat=44.87
 |long=18.81
 |float=right
 |caption=
 }}
Brčko (Bosnia)
Brčko
Brčko

[edit] Western Hemisphere

Lockerbie (Scotland)
{{Location map
 |Scotland
 |label=Lockerbie
 | lat_dir=N
 | lat_deg=55 | lat_min=07 | lat_sec=16
 | lon_dir=W
 | lon_deg=03 | lon_min=21 | lon_sec=19
 |position=right
 |width=180
 |float=right
 |caption=Lockerbie in Scotland
}}
Lockerbie (Scotland)
Lockerbie
Lockerbie
Lockerbie in Scotland

[edit] Country that crosses 180° meridian

Uelen (Russia)
{{Location map
 |Russia
 |label=Uelen
 |lat_deg=66|lat_min=09
 |lon_deg=169|lon_min=48|lon_dir=W
 |position=left
 |width=500
 |float=right
 |background=#FFFFDD
 }}
Uelen (Russia)
Uelen
Uelen
Uelen (Russia)

[edit] Implementation notes

The map with markers/labels is implemented as nested HTML divisions. The map-image is in an HTML division, containing each point as a percent-locator division containing a marker-image sub-division plus a label sub-division. Each point is calculated (for a percent-locator division) with X or Y coordinate "XX.X%" or "YY.Y%" as follows:

  • The div-tag is "<div style="position: absolute; z-index: 2; top: XX.X%; left: YY.Y%; ...>"
  • For placing latitude, the calculation is:
  • XX.X% = 100 * (top - (lat_deg + latmin/60 +latsec/3600) ) / (top - bottom)
  • If lat_deg is empty, the combined decimal latitude is used from "lat".
  • If lat_dir is "S" (south), the latitude is multiplied by -1.
  • (Note latitude is positioned in reverse, from top of map downward.)
  • For placing longitude, the calculation is:
  • YY.Y% = 100 * ( (lon_deg + lonmin/60 +lonsec/3600) - left ) / (right - left)
  • If lon_deg is empty, the combined decimal longitude is used as "long".
  • If lon_dir is "W" (west), the longitude is multiplied by -1.
  • The div-tag is ended as "height: 0; width: 0; margin: 0; padding: 0;">".
  • Within that division the marker/label sub-divisions are coded as:
  • <div style="position: relative text-align: center; ...">.
  • For label position, the options are shifted as:
  • when position=left, adds "left: -6.5em; text-align: right;"
  • when position=right, adds "left: 0.5em; text-align: left;"
  • when position=top, adds "top:-2.65em; left:-3em; text-align: center;"
  • when position=bottom, adds "top:-0.15em; left: -3em; text-align: center;" to div-tag.

[edit] See also