[feature] Moved rendering method from map class to rendering class.