Module:Location map/data/Russia Chukotka Autonomous Okrug/doc: Difference between revisions

Content deleted Content added
Update
modulo
Line 188:
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 "modulemodulo arithmetic" is required. Here, we add 360 if the longitude is less than 0, 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