You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
765 B
27 lines
765 B
|
|
|
|
import de.anomic.http.metadata.RequestHeader;
|
|
import de.anomic.server.serverObjects;
|
|
import de.anomic.server.serverSwitch;
|
|
import de.anomic.ymage.ymageMatrix;
|
|
import de.anomic.ymage.ymageOSM;
|
|
|
|
public class osm {
|
|
|
|
public static ymageMatrix respond(final RequestHeader header, final serverObjects post, final serverSwitch env) {
|
|
|
|
int zoom = 10;
|
|
double lat = 47.968056d;
|
|
double lon = 7.909167d;
|
|
|
|
if (post != null) {
|
|
zoom = post.getInt("zoom", zoom);
|
|
lat = post.getDouble("lat", lat);
|
|
lon = post.getDouble("lon", lon);
|
|
}
|
|
|
|
final ymageOSM.tileCoordinates coord = new ymageOSM.tileCoordinates(lat, lon, zoom);
|
|
return ymageOSM.getCombinedTiles(coord);
|
|
}
|
|
|
|
} |