From: Keith Packard Date: Sun, 7 Oct 2018 03:21:07 +0000 (-0700) Subject: altoslib: Change map loading to lat=&lon= from center= X-Git-Tag: 1.8.7~3^2~21 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=ff5faf1cc710b7e9299dcaec719bc2421f4ca5b4;hp=21c630af7181a03b44cfcfa1cc787212501785ec altoslib: Change map loading to lat=&lon= from center= This is easier to parse. Signed-off-by: Keith Packard --- diff --git a/altoslib/AltosMapStore.java b/altoslib/AltosMapStore.java index abd8c240..7e0f3fb8 100644 --- a/altoslib/AltosMapStore.java +++ b/altoslib/AltosMapStore.java @@ -57,7 +57,7 @@ public class AltosMapStore { } private static String altos_map_url(AltosLatLon center, int zoom, int maptype, int px_size, int scale, String format_string) { - return String.format("https://maps.altusmetrum.org/altos-map?center=%.6f,%.6f&zoom=%d", + return String.format("https://maps.altusmetrum.org/cgi-bin/altos-map?lat=%.6f&lon=%.6f&zoom=%d", center.lat, center.lon, zoom); } diff --git a/doc/map-loading.txt b/doc/map-loading.txt index 3dffcd04..1b39dd6b 100644 --- a/doc/map-loading.txt +++ b/doc/map-loading.txt @@ -89,7 +89,7 @@ server. The elements of the elements are: Encoding this in a URI is straightforward: -\ altos-map?center=,&zoom= +\ altos-map?lat=&lon=&zoom= Latitude and longitude are both encoded using decimal degrees with 6 digits following the decimal point.