Implemented map layers refreshing.