Module:Location map/data/USA Michigan
This Lua module is used on approximately 3,900 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 | Michigan | |||
---|---|---|---|---|
border coordinates | ||||
48.5 | ||||
-90.6 | ←↕→ | -81.9 | ||
41.5 | ||||
map center | [ ⚑ ] 45°00′N 86°15′W / 45°N 86.25°W | |||
image | USA Michigan location map.svg
| |||
image1 | Relief map of USA Michigan.png
| |||
Module:Location map/data/USA Michigan is a location map definition used to overlay markers and labels on an equirectangular projection map of Michigan. 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 Michigan":
{{Location map|USA Michigan |...}}
{{Location map many|USA Michigan |...}}
{{Location map+|USA Michigan |...}}
{{Location map~|USA Michigan |...}}
Map definition
name = Michigan
- Name used in the default map caption
image = USA Michigan location map.svg
- The default map image, without "Image:" or "File:"
image1 = Relief map of USA Michigan.png
- An alternative map image, usually a relief map, which can be displayed via the relief or AlternativeMap parameters
top = 48.5
- Latitude at top edge of map, in decimal degrees
bottom = 41.5
- Latitude at bottom edge of map, in decimal degrees
left = -90.6
- Longitude at left edge of map, in decimal degrees
right = -81.9
- 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 8.7 degrees.
- At an image width of 200 pixels, that is 0.0435 degrees per pixel.
- At an image width of 1000 pixels, that is 0.0087 degrees per pixel.
Latitude: from North to South this map definition covers 7 degrees.
- At an image height of 200 pixels, that is 0.035 degrees per pixel.
- At an image height of 1000 pixels, that is 0.007 degrees per pixel.
Examples using location map templates
Location map
{{Location map | USA Michigan | width = 250 | lat_deg = 42 | lat_min = 44 | lat_sec = 01 | lat_dir = N | lon_deg = 84 | lon_min = 32 | lon_sec = 48 | lon_dir = W | label = Lansing }}
Location map many
{{Location map many | USA Michigan | width = 250 | caption = Locations in Michigan | lat1 = 48.000 | long1 = -88.917 | label1 = Isle Royale | lat2 = 41.829 | long2 = -86.254 | label2 = Niles | lat3 = 46.455 | long3 = -90.171 | label3 = Ironwood | lat4 = 43.431 | long4 = -82.544 | label4 = Port Sanilac }}
Location map+
{{Location map+ | USA Michigan | width = 250 | caption = Locations in Michigan | places = {{Location map~ | USA Michigan | lat = 48.000 | long = -88.917 | label = Isle Royale }} {{Location map~ | USA Michigan | lat = 41.829 | long = -86.254 | label = Niles }} {{Location map~ | USA Michigan | lat = 46.455 | long = -90.171 | label = Ironwood }} {{Location map~ | USA Michigan | lat = 43.431 | long = -82.544 | label = Port Sanilac }} }}
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 = 'Michigan', top = 48.5, bottom = 41.5, left = -90.6, right = -81.9, image = 'USA Michigan location map.svg', image1 = 'Relief map of USA Michigan.png' }