|
|
|
@ -32,15 +32,15 @@ public class ExtentWrapped extends ol.Extent {
|
|
|
|
|
super(minX, minY, maxX, maxY);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param coordinate coordinate to check.
|
|
|
|
|
* @return true if the passed coordinate is contained or on the edge of the
|
|
|
|
|
* extent.
|
|
|
|
|
*/
|
|
|
|
|
@JsOverlay
|
|
|
|
|
public final Coordinate getCenter() {
|
|
|
|
|
return getCenter((ol.Extent) this);
|
|
|
|
|
}
|
|
|
|
|
// /**
|
|
|
|
|
// * @param coordinate coordinate to check.
|
|
|
|
|
// * @return true if the passed coordinate is contained or on the edge of the
|
|
|
|
|
// * extent.
|
|
|
|
|
// */
|
|
|
|
|
// @JsOverlay
|
|
|
|
|
// public final Coordinate getCenter() {
|
|
|
|
|
// return getCenter((ol.Extent) this);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
@JsMethod(name = "getCenter", namespace = PACKAGE_EXTENT)
|
|
|
|
|
private static native Coordinate getCenter(Extent extent);
|
|
|
|
|