dynamic width and height for the map