added support for map rotation