Module:Location map/data/USA Pennsylvania
From HandWiki
< Module:Location map
Revision as of 17:43, 11 March 2018 by imported>Plastikspork (Changed protection level for "Module:Location map/data/USA Pennsylvania" ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
This Lua module is used on approximately 6,700 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
name | Pennsylvania | |||
---|---|---|---|---|
border coordinates | ||||
42.7 | ||||
-80.7 | ←↕→ | -74.5 | ||
39.5 | ||||
map center | [ ⚑ ] 41°06′N 77°36′W / 41.1°N 77.6°W | |||
image | USA Pennsylvania 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:"
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
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
return { name = 'Pennsylvania', top = 42.7, bottom = 39.5, left = -80.7, right = -74.5, image = 'USA Pennsylvania location map.svg' }