Module:Location map/data/Callistea/doc

From RabastorWiki
Jump to navigation Jump to search

This is the documentation page for Module:Location map/data/Callistea

Location map notes

Standard usage for location maps is to set the boundaries in such a way that any location can be replicated on the location map using pixel co-ordinates.

For example, a 2048x2048 image should have boundaries of 0, 204.8, 0, 204.8.

This allows a point at pixel co-ordinates (1567,1056) to be plotted precisely in degrees and minutes by using the integer component as the number of degrees, and then multiplying the decimal component by 60 to get the number of minutes.

Like so:

d = int(156.9°) = 156°
m = int((156.9° - 156°) × 60) = 54'
156.9° = 156° 54'

You can also use Deg2Min to get just the minute value isolated from the full decimal input, like so:

{{Deg2Min|156.9}} returns 27 which you can then plug directly into the template in the minutes parameter.