Creates a location map as a composite image of an existing map, 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"), with pos2, bg2, pos3, bg3, etc.
Each mark, mark2, mark3 (etc.) can be another image-symbol, such as Diamond_sheer_red_20.gif (marksize=20) to show a red diamond on the image: or use: Cercle_rouge_100%.svg to show a red circle or a larger black diamond: Diamond_sheer_black_37.gif as sized with a larger marksize=37 or similar number to resize the diamond somewhat:
The degrees of latitude/longitude are validated, to show error messages, but location minutes can be set very large to place markers outside the map (with no warnings). Due to the numerous details of specifying 9 markers/labels, the latitude and longitude are checked to lie within the actual map limits specified in Template:Location_map_<parameter1>. Each marker/label is checked and can list a warning message (under the map), such as:
Latitude#4 (45.68) < map min(53.74).
Processing continues, with that marker actually placed off-map, and all latitude/longitude parameters are checked, for a total of 18 possible advisory messages. Only degrees of latitude/longitude are checked, so a value of 63 minutes would be valid to indicate 1 extra degree + 3 minutes, and setting lon_min=200 could still place a marker off-map (right-side) with no warning message. Also, large markers or long labels can spill over the edges of a map, allowing markers to point inward from outside the map. In such cases, a map could be centered by itself on the page ("float=center") to avoid overlapping the edge markers onto any surrounding article text.
Find an appropriate blank map in equirectangular projection (otherwise, coordinates will drift off, typically further north)
Create a template named "Template:Location_map_locname" (copy the content of any other map template into it and enter appropriate values).
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).
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).
Ralat Lua pada baris 143 di Modul:Location_map/multi: Tidak dapat cari takrifan peta lokasi yang ditentukan: "Modul:Peta lokasi/data/Croatia" tidak wujud.
Ralat Lua pada baris 143 di Modul:Location_map/multi: Tidak dapat cari takrifan peta lokasi yang ditentukan: "Modul:Peta lokasi/data/Croatia" tidak wujud.
Ralat Lua pada baris 143 di Modul:Location_map/multi: Tidak dapat cari takrifan peta lokasi yang ditentukan: "Modul:Peta lokasi/data/Croatia" tidak wujud.
Ralat Lua pada baris 143 di Modul:Location_map/multi: Tidak dapat cari takrifan peta lokasi yang ditentukan: "Modul:Peta lokasi/data/Croatia" tidak wujud.
{{Location map many | Croatia
|label=Imotski
|lat=43.44
|long=17.21
|position=right
|width=280
|float=right
|background=#FFFFDD
|caption=Imotski in Croatia
}}
Ralat Lua pada baris 143 di Modul:Location_map/multi: Tidak dapat cari takrifan peta lokasi yang ditentukan: "Modul:Peta lokasi/data/Croatia" tidak wujud.
{{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
}}
Ralat Lua pada baris 143 di Modul:Location_map/multi: Tidak dapat cari takrifan peta lokasi yang ditentukan: "Modul:Peta lokasi/data/Croatia" tidak wujud.
Ralat Lua pada baris 143 di Modul:Location_map/multi: Tidak dapat cari takrifan peta lokasi yang ditentukan: "Modul:Peta lokasi/data/Bosnia" tidak wujud.
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%; ...>"