User:RexxS/Location map/doc

This template generates a location map as a composite image consisting of a map and a location mark. Optionally a label and caption can be added.

Usage
Map image files are not accessed directly but by using an auxiliary map definition template. For example, if the first unnamed parameter supplied to this template is "Japan", then this template uses the auxiliary template, Location map Japan which contains the data needed to generate the composite image.


 * Please note:
 * Assigning any value to the parameter  causes the map to be displayed as a thumbnail image. If this parameter is not declared, the template will generate a default caption.
 * The coordinates are not checked. If the coordinates specified fall outside the area covered by the map image, the location mark will not display inside the image, however, it may be displayed somewhere else on the page.
 * Do not use  . Using  will usually cause a very large map to be displayed. Use.
 * To create a map with more than one location mark use Location map+ or Location map many.

Available map templates
There are over 1000 map templates available. To find other templates:


 * Template:Location map/List - some of the items listed here are redirects and a few templates may not function as expected
 * Category:Location map templates - templates sorted by category
 * Special:WhatLinksHere/Template:Location map/Info - a search that might help
 * Special:Prefixindex/Template:Location map - another search that might help

Creating new map definition templates
See Creating a new map template.

Default width and float, no label, default caption (decimal coordinates)


Note: When a label is not specified, the default caption is "Page name (Map name)", so if this example was viewed on a page named Pag, the default caption would be "Pag (Croatia)". Likewise, on a page named Pag (town), the default caption would be "Pag (town) (Croatia)".

Map with the default caption (degrees/minutes)


Note: When a label is specified, the default caption is "Label text (Map name)", seen as "Pag (Croatia)" in this example.

Marker/Label outside of Map


Map with a custom caption and text background


Map with enlarged marker and label


Map with no caption or border


Relief parameter




AlternativeMap parameter




Same coordinates on different maps




Map that crosses 180° meridian

 * See Category:Location map templates crossing 180th meridian



Additional examples
For similar examples, see the documentation at Template:Location map+, as well as:
 * Template:Location map+/relief, an example using the relief parameter
 * Template:Location map+/AlternativeMap, an example using the AlternativeMap parameter
 * Template:Location map+/overlay, an example using the overlay_image parameter