|
|
|
@ -166,15 +166,16 @@ public class OLMapManager {
|
|
|
|
|
// geoWidth = (bboxWidth / w) * (14 / 2);
|
|
|
|
|
geoWidth = (bboxWidth / w) * (16 / 2);
|
|
|
|
|
} else {
|
|
|
|
|
// data point selection for coordinate loaded from concessione
|
|
|
|
|
geoWidth = (bboxWidth / w) * (2);
|
|
|
|
|
// data point selection for coordinate loaded from the centroid
|
|
|
|
|
geoWidth = (bboxWidth / w) / 20;
|
|
|
|
|
GWT.log("geo width: "+geoWidth);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
double x1 = Math.min(lon + geoWidth, lon - geoWidth);
|
|
|
|
|
double x2 = Math.max(lon + geoWidth, lon - geoWidth);
|
|
|
|
|
double y1 = Math.min(lat + geoWidth, lat - geoWidth);
|
|
|
|
|
double y2 = Math.max(lat + geoWidth, lat - geoWidth);
|
|
|
|
|
// GWT.log("("+x1+","+y1+")("+x2+","+y2+")");
|
|
|
|
|
//GWT.log("("+x1+","+y1+")("+x2+","+y2+")");
|
|
|
|
|
|
|
|
|
|
GeoQuery select = new GeoQuery(x1, y1, x2, y2, TYPE.POINT);
|
|
|
|
|
return select;
|
|
|
|
|