Moving refresh logic to OLMap.refresh.