disables map when during api call