Added Z indexes to the map nodes based on classes.