When rotating, you only need to change the overlay orientation for tiles.
From my map editor:
The other 2 don't change apart from their positions.Code:overlayOrientations[zPos][xPos][yPos] = (byte) ((data.getOverlayOrientation() - rotation) & 3);
For objects it's much the same as above (their old rotation - new rotation & 3)