Template:Infobox map/Map display methods

== Map display methods ==

There are three ways to generate a marker on a map.

Display a marker on a map using a template and geographic coordinates
A marker can be superimposed on a map using one of a set of special map templates. To display a marker the geographic coordinates must be specified using the parameters,  , etc. See the documentation for Location map. The parameters for this template map to a subset of the parameters used by. A map template can be found using these sources:
 * List of templates - Many of the listed items 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.

All of the names begin with the words "Location map" followed by the area covered. The value you need to specify is the area name. The map template for the Canada is Location map Canada. In this case specify.

Display a marker on any map image using the and   parameters
The values for the  and   parameters are the pixel coordinates of the location mark when the image is scaled to a width of 1000 pixels.


 * is the pixel offset for the mark from the left edge of an image 1000px wide.
 * is the pixel offset for the mark from the top edge of an image 1000px wide.

There are at least two ways of obtaining these values:


 * 1) Download the image from the image's file page to your computer. Open the image in a graphics editor, such as GIMP or XnView. Scale (resize) the image to a width of 1000px and then note the x, y coordinates when the cursor points to the desired location. Use these values directly.
 * 2) Download the image from the image's file page to your computer. Open the image in any image viewer that displays the coordinates of the cursor position, such as Paint from Microsoft. Note the x, y coordinates when the cursor points to the location. Then:


 * $1000·x'⁄w =

x$ and  $1000·y'⁄w =

y$


 * where $x'$ and $y'$ are the cursor coordinates, $w$ is the width of the image displayed on your computer and $x$ and $y$ are the values to assign to the  and   parameters.

Display a marker on any map image using the and   parameters

 * x% specifies the percent of the distance across the image from the left edge.
 * y% specifies the percent of the distance down from the top edge.

In the following example the marker is 36.9% of the way across and 57.4% of the way down.