This one-liner will return true if the marker‘s position is contained under the current map boundary, and return false if not.
map.getBounds().contains(marker.getPosition())
This one-liner will return true if the marker‘s position is contained under the current map boundary, and return false if not.
map.getBounds().contains(marker.getPosition())