Module:Location map/data/Thailand
name | Thailand | |||
---|---|---|---|---|
border coordinates | ||||
20.6 | ||||
97.1 | ←↕→ | 106 | ||
5.4 | ||||
map center | 13°00′N 101°33′E / 13°N 101.55°E | |||
image | Thailand adm location map.svg
| |||
image1 | Thailand location relief map.svg
| |||
Module:Location map/data/Thailand is a location map definition used to overlay markers and labels on an equirectangular projection map of Thailand. 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 "Thailand":
{{Location map|Thailand |...}}
{{Location map many|Thailand |...}}
{{Location map+|Thailand |...}}
{{Location map~|Thailand |...}}
Map definition
name = Thailand
- Name used in the default map caption
image = Thailand adm location map.svg
- The default map image, without "Image:" or "File:"
image1 = Thailand location relief map.svg
- An alternative map image, usually a relief map, which can be displayed via the relief or AlternativeMap parameters
top = 20.6
- Latitude at top edge of map, in decimal degrees
bottom = 5.4
- Latitude at bottom edge of map, in decimal degrees
left = 97.1
- Longitude at left edge of map, in decimal degrees
right = 106
- 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.9 degrees.
- At an image width of 200 pixels, that is 0.0445 degrees per pixel.
- At an image width of 1000 pixels, that is 0.0089 degrees per pixel.
Latitude: from North to South this map definition covers 15.2 degrees.
- At an image height of 200 pixels, that is 0.076 degrees per pixel.
- At an image height of 1000 pixels, that is 0.0152 degrees per pixel.
Examples using location map templates
Location map, using default map (image)
{{Location map | Thailand | width = 150 | lat_deg = 13.752 | lon_deg = 100.494 | label = Bangkok }}
Location map many, using relief map (image1)
=== Location map many, using relief map (image1) === {{Location map many | Thailand | relief = yes | width = 250 | caption = Seven locations in Thailand | lat1_deg = 13.752 | lon1_deg = 100.494 | label1 = Bangkok | lat2_deg = 13.543 | lon2_deg = 100.270 | label2 = Samut Sakhon | lat3_deg = 14.025 | lon3_deg = 99.530 | label3 = Kanchanaburi | lat4_deg = 7.495 | lon4_deg = 99.075 | label4 = Ko Lanta Yai | lat5_deg = 18.780 | lon5_deg = 98.981 | label5 = Chiang Mai | lat6_deg = 16.838 | lon6_deg = 100.257 | label6 = Phitsanulok | lat7_deg = 16.438 | lon7_deg = 102.810 | label7 = Khon Kaen }}
Location map+, using AlternativeMap
{{Location map+ | Thailand | AlternativeMap = Thailand location map Topographic.png | width = 150 | caption = Two locations in Thailand | places = {{Location map~ | Thailand | lat_deg = 13.752 | lon_deg = 100.494 | label = Bangkok }} {{Location map~ | Thailand | lat_deg = 7.017 | lon_deg = 100.467 | label = Hat Yai }} }}
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 = 'Thailand',
top = 20.6,
bottom = 5.4,
left = 97.1,
right = 106.0,
defaultscale = 0.6,
image = 'Thailand adm location map.svg',
image1 = 'Thailand location relief map.svg'
}