Module:Location map/data/Cape Cod
Jump to navigation
Jump to search
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/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.
Contents
Usage
These definitions are used by the following templates when invoked with parameter "Cape Cod":
{{Location map | Cape Cod | ...}}
{{Location map many | Cape Cod | ...}}
{{Location map+ | Cape Cod | ...}}
{{Location map~ | Cape Cod | ...}}
Map definition
name = Cape Cod
- Name used in the default map caption
image = USA Mass Cape Cod location map.svg
- The default map image, without "Image:" or "File:"
top = 42.104054
- Latitude at top edge of map, in decimal degrees
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 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:
Expand Click to expand code for the lighthouse example
|
---|
See also
Location map templates
- Template:Location map, to display one mark and label using latitude and longitude
- Template:Location map many, to display up to nine marks and labels
- Template:Location map+, to display an unlimited number of marks and labels
Creating new map definitions
return require('Module:Location map/data/USA Cape Cod')