summaryrefslogtreecommitdiff
path: root/htroot
diff options
context:
space:
mode:
authororbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542>2010-08-08 23:14:08 +0000
committerorbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542>2010-08-08 23:14:08 +0000
commit388aa021c284cf772f12c2b7612f6db2eca0d176 (patch)
treeaac6b6e3646b1b1db1cddc64610c6824988971df /htroot
parent670c746dc560c6c47a2694079931ac5add84c853 (diff)
- concurrent loading of OSM tiles
- added a 4-time re-try in case that tile server does not respond git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7025 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'htroot')
-rw-r--r--htroot/osm.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/htroot/osm.java b/htroot/osm.java
index bd4e101dc..3a9fb8dbc 100644
--- a/htroot/osm.java
+++ b/htroot/osm.java
@@ -17,15 +17,19 @@ public class osm {
int zoom = 10;
double lat = 50.11670d;
double lon = 8.68333d;
+ int width = 3;
+ int height = 3;
if (post != null) {
zoom = post.getInt("zoom", zoom);
lat = post.getDouble("lat", lat);
lon = post.getDouble("lon", lon);
+ width = post.getInt("width", width);
+ height = post.getInt("height", height);
}
final OSMTile.tileCoordinates coord = new OSMTile.tileCoordinates(lat, lon, zoom);
- return OSMTile.getCombinedTiles(coord);
+ return OSMTile.getCombinedTiles(coord, width, height);
}
} \ No newline at end of file