makes api call with dynamic map width,height