neffo / earth-view-wallpaper-gnome-extension

A beautiful satellite image from Google Earth as your GNOME desktop wallpaper.
https://extensions.gnome.org/extension/1295/google-earth-wallpaper/
GNU General Public License v3.0
67 stars 8 forks source link

West and East are flipped in location reporting #19

Closed dllmr closed 4 years ago

dllmr commented 4 years ago

image

E.g. this location should be reported as a western longitude rather than eastern.

Looks like a simple change is needed in utils.js, i.e.

function friendly_coordinates(lat, lon) { return Math.abs(lat).toFixed(4)+(lat>0 ? 'N': 'S')+', '+Math.abs(lon).toFixed(4)+(lon>0 ? 'E': 'W'); }

neffo commented 4 years ago

Thanks for reporting the bug, it should be fixed in the git version, but if you are using the version from the GNOME extensions page it will take a little while to be updated. I'll close this bug once a fixed version is uploaded.

dllmr commented 4 years ago

Thanks for the quick response - I'm loving the extension btw!