Add constness to MapEntity.