Added funtionality so the map viewport can be set programaticaly.