altoslib: Change map loading to lat=&lon= from center=
authorKeith Packard <keithp@keithp.com>
Sun, 7 Oct 2018 03:21:07 +0000 (20:21 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 7 Oct 2018 04:33:08 +0000 (21:33 -0700)
This is easier to parse.

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosMapStore.java
doc/map-loading.txt

index abd8c2407284f6adc70c949a4564e3d58e6074a9..7e0f3fb8a7cc2f246307f7ceda5bb33adf5f33ef 100644 (file)
@@ -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);
        }
 
index 3dffcd041932f7371ff9fa60aab7cb9b4230ccc6..1b39dd6bf7e4cbfc6a794222917cde6b9e093308 100644 (file)
@@ -89,7 +89,7 @@ server. The elements of the  elements are:
 
 Encoding this in a URI is straightforward:
 
-\      altos-map?center=<lat>,<lon>&zoom=<zoom>
+\      altos-map?lat=<lat>&lon=<lon>&zoom=<zoom>
 
 Latitude and longitude are both encoded using decimal degrees with 6
 digits following the decimal point.