This Lua module is used on approximately 7,000 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
name | Pennsylvania | |||
---|---|---|---|---|
border coordinates | ||||
42.7 | ||||
-80.7 | ←↕→ | -74.5 | ||
39.5 | ||||
map center | Lua error: callParserFunction: function "#coordinates" was not found. | |||
image | USA Pennsylvania location map.svg
| |||
image1 | USA Pennsylvania relief location map.svg
| |||
Module:Location map/data/USA Pennsylvania is a location map definition used to overlay markers and labels on an equirectangular projection map of the U.S. state of Pennsylvania. 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 Pennsylvania":
{{Location map|USA Pennsylvania |...}}
{{Location map many|USA Pennsylvania |...}}
{{Location map+|USA Pennsylvania |...}}
{{Location map~|USA Pennsylvania |...}}
Map definition
name = Pennsylvania
- Name used in the default map caption
image = USA Pennsylvania location map.svg
- The default map image, without "Image:" or "File:"
image1 = USA Pennsylvania relief location map.svg
- An alternative map image, usually a relief map, which can be displayed via the relief or AlternativeMap parameters
top = 42.7
- Latitude at top edge of map, in decimal degrees
bottom = 39.5
- Latitude at bottom edge of map, in decimal degrees
left = -80.7
- Longitude at left edge of map, in decimal degrees
right = -74.5
- Longitude at right edge of map, in decimal degrees
Alternative map
The {{Location map}}, {{Location map many}}, and {{Location map+}} templates have parameters to specify an alternative map image. The map displayed as image1 can be used with the relief or AlternativeMap parameters. Examples may be found below or in the following:
- Template:Location map#Relief parameter
- Template:Location map+/relief
- Template:Location map#AlternativeMap parameter
- Template:Location map+/AlternativeMap
Precision
Longitude: from West to East this map definition covers 6.2 degrees.
- At an image width of 200 pixels, that is 0.031 degrees per pixel.
- At an image width of 1000 pixels, that is 0.0062 degrees per pixel.
Latitude: from North to South this map definition covers 3.2 degrees.
- At an image height of 200 pixels, that is 0.016 degrees per pixel.
- At an image height of 1000 pixels, that is 0.0032 degrees per pixel.
Examples using location map templates
Location map
{{Location map | USA Pennsylvania | width = 250 | lat_deg = 40 | lat_min = 16 | lat_sec = 11 | lat_dir = N | lon_deg = 76 | lon_min = 52 | lon_sec = 32 | lon_dir = W | label = Harrisburg }}
Location map many
{{Location map many | USA Pennsylvania | width = 250 | caption = Locations in Pennsylvania | lat1 = 42.213 | long1 = -79.834 | label1 = North East | lat2 = 39.730 | long2 = -76.451 | label2 = Fawn Grove | lat3 = 41.233 | long3 = -80.500 | label3 = Sharon | lat4 = 41.368 | long4 = -74.702 | label4 = Matamoras }}
Location map+
{{Location map+ | USA Pennsylvania | width = 250 | caption = Locations in Pennsylvania | places = {{Location map~ | USA Pennsylvania | lat = 42.213 | long = -79.834 | label = North East }} {{Location map~ | USA Pennsylvania | lat = 39.730 | long = -76.451 | label = Fawn Grove }} {{Location map~ | USA Pennsylvania | lat = 41.233 | long = -80.500 | label = Sharon }} {{Location map~ | USA Pennsylvania | lat = 41.368 | long = -74.702 | label = Matamoras }} }}
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