Jump to content

Module:Location map/data/USA Cape Cod/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Grolltech (talk | contribs) at 10:04, 23 May 2013 (class="collapsible collapsed"). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Template:Location map USA Mass Cape Cod (or simply, Template:Location map Cape Cod) is a location map definition used to overlay markers and labels on an equirectangular projection map of Cape Cod, in the U.S. state of Massachusetts. The markers are placed by latitude and longitude coordinates on the default map or a similar map image.

Usage

These definitions are used by the following templates when invoked with parameter "Cape Cod":


Map definition

Examples using infobox templates

This location map can be used in any infobox that accepts location maps (see the list in the collapsed section below, under "See also"). To use this map, simply enter "Cape Cod" where the infobox requires a location map name. Oftentimes, the parameter is called "|pushpin_map=" or "|locmapin=" or similar.

{{infobox_nrhp| ... | locmapin=Cape Cod | ... }}
{{Infobox settlement| ... |pushpin_map=Cape Cod | ... }}
{{Infobox lighthouse| ... |pushpin_map=Cape Cod | ... }}


Examples using location map templates

Location map

{{Location map | Cape Cod
| width   = 250
| lat_deg = 41 | lat_min = 42 | lat_sec = 0 | lat_dir = N
| lon_deg = 70 | lon_min = 18 | lon_sec = 0 | lon_dir = W
| caption = [[Barnstable, Massachusetts|Barnstable]] is on [[Cape Cod]], [[Massachusetts]]
| label   = Barnstable
}}

Location map with overlay and linked label

{{Location map | Cape Cod 
 |overlay_image=USA Mass Cape Cod Provincetown overlay.svg
 |label=[[Provincetown, Massachusetts|Provincetown]]
 |link=Provincetown, Massachusetts
<!-- must use a marker, but with the overlay, a pog is unnecessary, so use clear -->
 |mark=Clear pog.svg 
 |lat_deg=42.033
 |lon_deg=-70.169
 |width=250
 |float=right
 |caption=[[Provincetown]] is in [[Barnstable County]], at the very tip of [[Cape Cod]].
 |alt=A map of Cape Cod, with the town colored bright red.
}}


Location map many

Location map/data/USA Cape Cod/doc is located in Cape Cod
Barnstable
Barnstable
Provincetown
Provincetown
Eastham
Eastham
Locations on Cape Cod
{{Location map many | Cape Cod
| width    = 250
| caption  = Locations on Cape Cod
| lat1 = 41.7 | long1 = -70.3 | label1 = Barnstable
| lat2 = 42.0583 | long2 = -70.1792 | label2 = Provincetown
| lat3 = 41.830 | long3 = -69.974 | label3 = Eastham
}}

Location map+

Here is a fairly complex real-world example, showing 17 points and linked labels in a small 320px image. Careful experimentation with "|position=" and "|background=" allows us to legibly label the points:


See also

Location map templates
Infobox templates incorporating (passing values to) the Location map template
List