using map's spatial reference