Added rotation to the template and mc->lat/lng converter