Declare verticalOffset var at top of fn; call isOnMarker.