|
|
@ -15,15 +15,15 @@ public class osm {
|
|
|
|
public static RasterPlotter respond(@SuppressWarnings("unused") final RequestHeader header, final serverObjects post, @SuppressWarnings("unused") final serverSwitch env) {
|
|
|
|
public static RasterPlotter respond(@SuppressWarnings("unused") final RequestHeader header, final serverObjects post, @SuppressWarnings("unused") final serverSwitch env) {
|
|
|
|
|
|
|
|
|
|
|
|
int zoom = 10;
|
|
|
|
int zoom = 10;
|
|
|
|
float lat = 50.11670f;
|
|
|
|
double lat = 50.11670d;
|
|
|
|
float lon = 8.68333f;
|
|
|
|
double lon = 8.68333d;
|
|
|
|
int width = 3;
|
|
|
|
int width = 3;
|
|
|
|
int height = 3;
|
|
|
|
int height = 3;
|
|
|
|
|
|
|
|
|
|
|
|
if (post != null) {
|
|
|
|
if (post != null) {
|
|
|
|
zoom = post.getInt("zoom", zoom);
|
|
|
|
zoom = post.getInt("zoom", zoom);
|
|
|
|
lat = post.getFloat("lat", lat);
|
|
|
|
lat = post.getDouble("lat", lat);
|
|
|
|
lon = post.getFloat("lon", lon);
|
|
|
|
lon = post.getDouble("lon", lon);
|
|
|
|
width = post.getInt("width", width);
|
|
|
|
width = post.getInt("width", width);
|
|
|
|
height = post.getInt("height", height);
|
|
|
|
height = post.getInt("height", height);
|
|
|
|
}
|
|
|
|
}
|
|
|
|