summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-10-07 14:06:51 -0700
committerKeith Packard <keithp@keithp.com>2018-10-07 14:12:02 -0700
commit444fdd96515cc7163c49942ac2435ace8e7bb5bf (patch)
treeca2c6976153b73fe47dd8384f8b40c4c6a2a749f
parent173e72429fb494ea3832e3e38ee90f165fbff4cf (diff)
altoslib: Be less chatty about map loading
Only mention when a new tile is being fetched from the server. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--altoslib/AltosMap.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/altoslib/AltosMap.java b/altoslib/AltosMap.java
index 9e5f578d..b033cbff 100644
--- a/altoslib/AltosMap.java
+++ b/altoslib/AltosMap.java
@@ -341,7 +341,9 @@ public class AltosMap implements AltosMapTileListener, AltosMapStoreListener {
AltosLatLon ul = transform.lat_lon(point);
AltosLatLon center = transform.lat_lon(new AltosPointDouble(x + AltosMap.px_size/2, y + AltosMap.px_size/2));
AltosMapTile tile = map_interface.new_tile(cache, ul, center, zoom, maptype, px_size, scale);
- debug("show state %s url %s\n", AltosMapTile.status_name(tile.store.status()), tile.store.url);
+ int status = tile.store.status();
+ if (status == AltosMapTile.fetching)
+ debug("Fetching %.6f %.6f %d\n", center.lat, center.lon, zoom);
tile.add_listener(this);
tiles.put(point, tile);
}