Module:Location map/data/USA West Virginia
From HandWiki
< Module:Location map
Revision as of 06:01, 2 March 2018 by imported>Plastikspork (Protected "Module:Location map/data/USA West Virginia": High-risk Lua module ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
![]() | This Lua module is used on approximately 4,400 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 | West Virginia | |||
---|---|---|---|---|
border coordinates | ||||
40.8 | ||||
-82.8 | ←↕→ | -77.5 | ||
37 | ||||
map center | [ ⚑ ] 38°54′N 80°09′W / 38.9°N 80.15°W | |||
image | USA West Virginia location map.svg
| |||
![]() |
Module:Location map/data/USA West Virginia is a location map definition used to overlay markers and labels on an equirectangular projection map of West Virginia. 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 West Virginia":
{{Location map|USA West Virginia |...}}
{{Location map many|USA West Virginia |...}}
{{Location map+|USA West Virginia |...}}
{{Location map~|USA West Virginia |...}}
Map definition
name = West Virginia
- Name used in the default map caption
image = USA West Virginia location map.svg
- The default map image, without "Image:" or "File:"
top = 40.8
- Latitude at top edge of map, in decimal degrees
bottom = 37
- Latitude at bottom edge of map, in decimal degrees
left = -82.8
- Longitude at left edge of map, in decimal degrees
right = -77.5
- Longitude at right edge of map, in decimal degrees
Precision
Longitude: from West to East this map definition covers 5.3 degrees.
- At an image width of 200 pixels, that is 0.0265 degrees per pixel.
- At an image width of 1000 pixels, that is 0.0053 degrees per pixel.
Latitude: from North to South this map definition covers 3.8 degrees.
- At an image height of 200 pixels, that is 0.019 degrees per pixel.
- At an image height of 1000 pixels, that is 0.0038 degrees per pixel.
Examples using location map templates
Location map
{{Location map | USA West Virginia | width = 250 | lat_deg = 38 | lat_min = 20 | lat_sec = 50 | lat_dir = N | lon_deg = 81 | lon_min = 38 | lon_sec = 00 | lon_dir = W | label = Charleston }}
Location map many
Locations in West Virginia
{{Location map many | USA West Virginia | width = 250 | caption = Locations in West Virginia | lat1 = 40.417 | long1 = -80.583 | label1 = Weirton | lat2 = 37.262 | long2 = -81.219 | label2 = Bluefield | lat3 = 38.413 | long3 = -82.434 | label3 = Huntington | lat4 = 39.432 | long4 = -77.806 | label4 = Shepherdstown }}
Location map+
Locations in West Virginia
{{Location map+ | USA West Virginia | width = 250 | caption = Locations in West Virginia | places = {{Location map~ | USA West Virginia | lat = 40.417 | long = -80.583 | label = Weirton }} {{Location map~ | USA West Virginia | lat = 37.262 | long = -81.219 | label = Bluefield }} {{Location map~ | USA West Virginia | lat = 38.413 | long = -82.434 | label = Huntington }} {{Location map~ | USA West Virginia | lat = 39.432 | long = -77.806 | label = Shepherdstown }} }}
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 = 'West Virginia', top = 40.8, bottom = 37.0, left = -82.8, right = -77.5, image = 'USA West Virginia location map.svg' }