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

MyWikiBiz, Author Your Legacy — Monday November 25, 2024
Jump to navigationJump to search

This is the documentation page for Module:Location map/data/USA Cape Cod

Lua error: expandTemplate: template "coord" does not exist.


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

Template: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
}}

Template:Clear Template:Anchor

Location map with overlay and linked label

Template:Location map

{{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.
}}

Template:Clear

Location map many

Template:Location map many

{{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
}}

Template:Clear

Location map+

Template:Cape Cod Lighthouses Here is a fairly complex real-world example, showing 17 points and linked labels in a small 320px image. Careful experimentation with "Template:Para" and "Template:Para" allows us to legibly label the points:

Template:Collapse top

{{Location map+ | Cape Cod
| width   = 320
| caption = The lighthouses of Cape Cod |alt=The lighthouses of Cape Cod
| places  =
 {{Location map~ | Cape Cod
  | lat = 41.51639 | long = -70.6575 
  | link=Nobska Light | label = [[Nobska Light|Nobska]]
 }}
 {{Location map~ | Cape Cod
  | lat = 41.68222 | long = -70.66028 |background=#fefee9 
  | link=Wing's Neck Light |label=[[Wing's Neck Light|Wing's&nbsp;Neck]]
 }}
 {{Location map~ | Cape Cod
  | lat = 41.72278 | long = -70.28111 |position=top
  | link=Sandy Neck Light |label=[[Sandy Neck Light|Sandy&nbsp;Neck]] 
 }}
 {{Location map~ | Cape Cod
  | lat = 41.636278 | long = -70.2885 |position=bottom
  | link=Hyannis Harbor Light | label=[[Hyannis Harbor Light|Hyannis&nbsp;Harbor]] 
 }}
 {{Location map~ | Cape Cod
  | lat = 41.574256 | long = -70.250056 |position=bottom
  | link=Bishop and Clerks Light 
  | label=[[Bishop and Clerks Light|Bishop &amp;&nbsp;Clerks]] 
 }}
 {{Location map~ | Cape Cod
  | lat = 41.651733 | long = -70.169186 |position=top |background=#fefee9
  | link=West Dennis Light | label = [[West Dennis Light|W.Dennis]] 
 }}
 {{Location map~ | Cape Cod
  | lat = 42.021227 | long = -70.1935 |position=bottom
  | link=Wood End Light | label = [[Wood End Light|Wood&nbsp;End]] 
 }}
 {{Location map~ | Cape Cod
  | lat = 42.033119 | long = -70.168653 |position=top |link=Long Point Light
  | label=[[Long Point Light|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Long&nbsp;Pt.]]
 }}
 {{Location map~ | Cape Cod
  | lat = 42.062333 | long = -70.24472 |position=left
  | link=Race Point Light | label = [[Race Point Light|Race<br /> Pt.]]
 }}
 {{Location map~ | Cape Cod
  | lat = 42.039523 | long = -70.060938 |position=right
  | link=Highland Light | label = [[Highland Light|Highland]] 
 }}
 {{Location map~ | Cape Cod
  | lat = 41.860139 | long = -69.952944 |position=right
  | link=Nauset Light | label = [[Nauset Light|Nauset]] 
 }}
 {{Location map~ | Cape Cod
  | lat = 41.845 | long = -69.96 |position=bottom 
  | link=Three Sisters of Nauset
  | label=[[Three Sisters of Nauset|Three&nbsp;Sisters]] 
 }}
 {{Location map~ | Cape Cod
  | lat = 41.559333 | long = -69.993722  |position=right
  | link=Monomoy Point Light | label = [[Monomoy Point Light|Monomoy Point]]
 }}
 {{Location map~ | Cape Cod
  | lat = 41.658407 | long = -69.984471 |background=#c6ecff |position=bottom
  | link=Stage Harbor Light | label = [[Stage Harbor Light|Stage&nbsp;Harbor]]
 }}
 {{Location map~ | Cape Cod
  | lat = 41.9307 | long = -70.0343 |position=right
  | link=Mayo Beach Light | label = [[Mayo Beach Light|Mayo&nbsp;Beach]]
 }}
 {{Location map~ | Cape Cod
  | lat = 41.86889 | long = -70.07167 
  | link=Billingsgate Island Light 
  | label=[[Billingsgate Island Light|Billingsgate Island]]
 }}
 {{Location map~ | Cape Cod
  | lat = 41.671307 | long = -69.96 |position=right 
  | link=Chatham Light |label = [[Chatham Light|Chatham]]
 }}
}}

Template:Collapse bottom

Template:Clear

See also

Location map templates

Creating new map definitions