added some checks
This commit is contained in:
parent
e9fff02e29
commit
75eab15aa5
|
@ -321,6 +321,7 @@ public class GeoportalDataViewer implements EntryPoint {
|
|||
if(x!=null && y!=null) {
|
||||
Coordinate transfCoord = MapUtils.transformCoordiante(new Coordinate(x, y), GeoportalDataViewerConstants.EPSG_4326, GeoportalDataViewerConstants.EPSG_3857);
|
||||
GeoQuery select = olMapMng.toDataPointQuery(transfCoord);
|
||||
GWT.log("GeoQuery: "+select);
|
||||
//GeoportalDataViewerConstants.print("fireEvent QueryDataEvent");
|
||||
layerManager.getLayerManagerBus().fireEvent(new QueryDataEvent(select, transfCoord, record.getId(), true));
|
||||
}else {
|
||||
|
|
|
@ -140,6 +140,7 @@ public class OLMapManager {
|
|||
|
||||
double lon = coordinate.getX();
|
||||
double lat = coordinate.getY();
|
||||
GWT.log("To quey DP: "+coordinate);
|
||||
|
||||
int w = (int) olMap.getSize().getWidth();
|
||||
int h = (int) olMap.getSize().getHeight();
|
||||
|
|
|
@ -164,5 +164,27 @@ public class GeoQuery implements Serializable{
|
|||
public void setLimit(int limit) {
|
||||
this.limit = limit;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder builder = new StringBuilder();
|
||||
builder.append("GeoQuery [bbox=");
|
||||
builder.append(bbox);
|
||||
builder.append(", type=");
|
||||
builder.append(type);
|
||||
builder.append(", x1=");
|
||||
builder.append(x1);
|
||||
builder.append(", y1=");
|
||||
builder.append(y1);
|
||||
builder.append(", x2=");
|
||||
builder.append(x2);
|
||||
builder.append(", y2=");
|
||||
builder.append(y2);
|
||||
builder.append(", limit=");
|
||||
builder.append(limit);
|
||||
builder.append("]");
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue