replaced map generation on map loading