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

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by imported>JJMC89 bot III at 19:06, 13 July 2023 (Moving Category:Massachusetts location map templates to Category:Massachusetts location map modules per Wikipedia:Categories for discussion/Speedy). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Location map of Cape Cod
name Cape Cod
border
coordinates
42.104054
-70.84478 ←↕→ -69.77812
41.488985
map center Lua error: callParserFunction: function "#coordinates" was not found.
image USA Mass Cape Cod location map.svg


Module:Location map/data/USA Cape Cod is a location map definition used to overlay markers and labels on an equirectangular projection map of Cape Cod. 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 "USA Cape Cod":

Map definition

  • name = Cape Cod
    Name used in the default map caption
  • bottom = 41.488985
    Latitude at bottom edge of map, in decimal degrees
  • left = -70.84478
    Longitude at left edge of map, in decimal degrees
  • right = -69.77812
    Longitude at right edge of map, in decimal degrees

Precision

Longitude: from West to East this map definition covers 1.0667 degrees.

  • At an image width of 200 pixels, that is 0.0053 degrees per pixel.
  • At an image width of 1000 pixels, that is 0.0011 degrees per pixel.

Latitude: from North to South this map definition covers 0.6151 degrees.

  • At an image height of 200 pixels, that is 0.0031 degrees per pixel.
  • At an image height of 1000 pixels, that is 0.0006 degrees per pixel.

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 of Provincetown 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

Creating new map definitions