Added possibilty to change the resolution of the map.