Suradnik:Leona/Lokacijska karta start

Creates a location map as a composite image of an existing map in orthographic projection with a marker and a label superimposed onto it.

Usage uredi

{{Lokacijska karta start|location
 |float=left or right or none
 |width=width of the map
}}
{{Lokacijska karta marker|location
 |lat=latitude in degrees
 |long=longitude in degrees
 |background=color - background color for the label, defaults to none 
 |mark=image file name - a red dot by default
 |label=label
 |position=left or right - position of the label relative to the mark, defaults to right
}}
{{Lokacijska karta end|location
 |caption=caption - caption below the map
}}

Available maps uredi

List of templates Template:Location map location (here without prefix "Template:"):

Creating new maps uredi

  1. Find an appropriate blank map in an orthographic projection.
  2. Create a template named Template:Location map location (copy the content of any other map template into it and enter appropriate values).

Issues uredi

Doesn't handle longitude properly for maps crossing the +/- 180 meridian yet.

Examples uredi

{{Suradnik:Leona/Lokacijska karta start|Slovenija|float=left|width=100}}
{{Suradnik:Leona/Lokacijska karta marker|Slovenija|label=Ljubljana|lat=46.05|long=14.5}}
{{Suradnik:Leona/Lokacijska karta end|Slovenija|caption=Ljubljana is the capital of Slovenia}}
 
 
Ljubljana
Ljubljana is the capital of Slovenia

{{Suradnik:Leona/Lokacijska karta start|Slovenija|float=right}}
{{Suradnik:Leona/Lokacijska karta marker|Slovenija|label=Nova Gorica|lat=45.95|long=13.63|background=white}}
{{Suradnik:Leona/Lokacijska karta marker|Slovenija|label=Maribor|lat=46.55|long=15.64}}
{{Suradnik:Leona/Lokacijska karta end|Slovenija}}
[[Slika:Predložak:Lokacijska karta Slovenija|200px]]

<div style="position:absolute;z-index:200;top:Pogreška u izrazu: nepoznat interpunkcijski znak »[«.%; left:Pogreška u izrazu: nepoznat interpunkcijski znak »[«.%;height:0;width:0;margin:0;padding:0;">

Nova Gorica

<div style="position:absolute;z-index:200;top:Pogreška u izrazu: nepoznat interpunkcijski znak »[«.%; left:Pogreška u izrazu: nepoznat interpunkcijski znak »[«.%;height:0;width:0;margin:0;padding:0;">

Maribor