Example #1
0
 private static MQARectLL toMQARectLL(final GWTBounds bounds) {
   final MQALatLng ne = toMQALatLng(bounds.getNorthEastCorner());
   final MQALatLng sw = toMQALatLng(bounds.getSouthWestCorner());
   return MQARectLL.newInstance(ne, sw);
 }
Example #2
0
 private static GWTBounds toGWTBounds(final MQARectLL bounds) {
   final BoundsBuilder bldr = new BoundsBuilder();
   bldr.extend(bounds.getUpperLeft().getLatitude(), bounds.getUpperLeft().getLongitude());
   bldr.extend(bounds.getLowerRight().getLatitude(), bounds.getLowerRight().getLongitude());
   return bldr.getBounds();
 }