Module:Location map/data/USA Alaska/doc: Difference between revisions

Content deleted Content added
Line 180:
where ''lat'' and ''long'' are the degrees latitude and longitude respectively. Here, ''top'' and ''bottom'' are the degrees latitude of the top and bottom edges of the map, ''left'' and ''right'' are the degrees latitude of the left and right edges of the map.
 
Things are a bit more complicated when the map crosses +/-180 longitude, and some sort of "module arithmetic" is required. Here, we add 360 if the longitude is less than 1800, then use a mapping based on positive coordinates. The following table can be used to check if the expressions are working as desired:
{| class="wikitable"
! ___location !! lat !! long !! (x,y) test !! (x,y) exact