new Coordinate(getWidth() + 2, getHeight() + 2), new Coordinate(-2, getHeight() + 2) });
LinearRing hole = getMapModel().getGeometryFactory().createLinearRing(
new Coordinate[] { new Coordinate(box.getX(), box.getY()),
new Coordinate(box.getMaxX(), box.getY()), new Coordinate(box.getMaxX(), box.getMaxY()),
new Coordinate(box.getX(), box.getMaxY()) });
Polygon polygon = getMapModel().getGeometryFactory().createPolygon(shell, new LinearRing[] { hole });
targetMaxExtentRectangle.setGeometry(polygon);
render(targetMaxExtentRectangle, RenderGroup.SCREEN, RenderStatus.ALL);
} else {
render(targetMaxExtentRectangle, RenderGroup.SCREEN, RenderStatus.DELETE);
targetMaxExtentRectangle = null;