Geometry mapExtent = JTS.toGeometry(originalEnvelope);
if (values.map.getRotation() != 0.0) {
mapExtent = rotateExtent(mapExtent, values.map.getRotation(), originalEnvelope);
}
FeatureLayer layer = createOrignalMapExtentLayer(mapExtent, mapParams,
values.overviewMap.getStyle(), originalEnvelope.getCoordinateReferenceSystem());
mapParams.setMapExtentLayer(layer);
}