Change marker visibility condition